switchyard
Home
Guide
GitHub
Preparing search index...
@switchyard-ts/core
toPromise
Function toPromise
toPromise
<
M
extends
Machine
<
unknown
>
>
(
machine
:
M
)
:
Promise
<
unknown
>
Resolves with the machine's
output
getter once it reaches a top-level final state.
Type Parameters
M
extends
Machine
<
unknown
>
Parameters
machine
:
M
Returns
Promise
<
unknown
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Home
Guide
GitHub
switchyard
Loading...
Resolves with the machine's
outputgetter once it reaches a top-level final state.