Wasm Directoryalpha
Resource

future-elicit-result

A future representing a pending elicit result

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.