A trigger can be a value, a function or generator. Value triggers never complete.
A trigger function is considered complete if it returns undefined.
A trigger generator is considered complete if it returns done.
Returns [value, _false_] if we have a value and trigger is not completed.
Returns [value, _true_] trigger is completed
Resolves a trigger value.
A trigger can be a value, a function or generator. Value triggers never complete. A trigger function is considered complete if it returns undefined. A trigger generator is considered complete if it returns done.
Returns
[value, _false_]
if we have a value and trigger is not completed. Returns[value, _true_]
trigger is completed