Skip to main content

with_async_shape_table_scope

Function with_async_shape_table_scope 

Source
pub async fn with_async_shape_table_scope<R>(
    handle: Arc<ShapeTableHandle>,
    fut: impl Future<Output = R>,
) -> R
Expand description

Run fut with handle installed as the task-local current shape table. Inherited by all descendant .await points and survives tokio task migration across worker threads.