You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be helpful to provide an API to do this easily.
We could piggyback on AuditionOptions, e.g.:
exporttypeAuditionOptions={// .../** * Send event immediately after starting the actor * (This should be generic on the logic's events, * and should only apply to actors which accept events) */send?: EventObject,/** * Delay sending the event specified by {@link AuditionOptions.send} * by this many milliseconds. Ignored if `AuditionOptions.send` is unset */sendAfter?: number,};
A benefit of the above is that it'd be compatible with all extant functions accepting AuditionOptions.
It pains me to note that providing a fluent API based on custom thenables could work:
Feature Request Checklist
Overview
I find myself doing stuff like:
It'd be helpful to provide an API to do this easily.
We could piggyback on
AuditionOptions
, e.g.:A benefit of the above is that it'd be compatible with all extant functions accepting
AuditionOptions
.It pains me to note that providing a fluent API based on custom thenables could work:
I'm leaning towards hating this (especially the implementation), but could be convinced otherwise.
Open to suggestions.
Additional Info
No response
The text was updated successfully, but these errors were encountered: