[][src]Module eff::context

A context for a task

TypedContext corresponds to a continuation. You can wake the task via .waker() and perform a special effect called Continue. Continue effect makes the handler wait for the source computation to complete.

Structs

Context

The untyped context of the task

TypedContext

The typed context of the task

Waker

The waker of the task

Traits

Notify

A notification object

Functions

channel

Create a channel for communicating the result of an effect under the context

get_task_context

Get the thread-local task context used by the generator-backed effectful computation

poll_with_task_context

Poll the given computation with the thread-local task context

set_task_context

Set the thread-local task context used by the generator-backed effectful computation