import { toPromise } from "https://deno.land/x/xstate@xstate%405.14.0/src/toPromise.ts";
Returns a promise that resolves to the output
of the actor when it is done.
Type Parameters
T extends AnyActorRef
Parameters
actor: T
Returns
Promise<OutputFrom<T>>