Resource
future-elicit-result
A future representing a pending elicit result
The elicit result is ready when the pollable indicates readiness. This enables async/await style operations where handlers can request information from clients and continue processing when the response arrives.
resource future-elicit-result;F subscribe
subscribe: func() -> pollable;Create a pollable to wait for the elicit result
The pollable becomes ready when the client responds to the elicitation. Use WASI poll to wait for readiness before calling elicit-result().
F elicit-result
elicit-result: func() -> elicit-result;Get the elicit result
Precondition: Only call this after subscribe() indicates readiness. Calling before the result is ready may trap or return invalid data.