• Convert a (possible) promise to something you can yield *to() in a job

    Much like await valueOrPromiseLike in an async function, using yield *to(valueOrPromiseLike) in a Job's generator function will return the value or the result of the promise/promise-like object.

    Type Parameters

    • T

    Parameters

    • p: T | Promise<T> | PromiseLike<T>

    Returns Yielding<T>