Function asyncContext

  • Create a new typed Context. The result contains helpers similar to React’s Context API but adapted for async usage in Runner.

    Type Parameters

    • T

    Parameters

    • def: IAsyncContextDefinition<T>

    Returns IAsyncContext<T>