Skuld.ForeignResolver.Runner (skuld_concurrency v0.32.0)

View Source

Resolution loop for ForeignSuspend values.

Runs a computation through the ForeignResolver protocol until all foreign suspensions are resolved and the computation completes.

Example

comp
|> FiberPool.with_handler()
|> ForeignResolver.Runner.run()

Summary

Functions

Run a computation through the foreign resolution loop.

Functions

run(comp)

Run a computation through the foreign resolution loop.

Returns the computation's final result once all foreign suspensions are resolved.