to<T>(p: T | Promise<T> | PromiseLike<T>): Yielding<T>
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.
Convert a (possible) promise to something you can
yield *to()
in a jobMuch like
await valueOrPromiseLike
in an async function, usingyield *to(valueOrPromiseLike)
in a Job's generator function will return the value or the result of the promise/promise-like object.