It seems the library implementation is based on a Promise node with a few fields (state, result) which are monitored by the chain logic.
Wouldn't a task with right fields pass as a promise? It would be very convenient and avoid creating extra promise nodes to integrate in a chain.
If that's possible the doc could show and example/template to follow.
It seems the library implementation is based on a Promise node with a few fields (state, result) which are monitored by the chain logic.
Wouldn't a task with right fields pass as a promise? It would be very convenient and avoid creating extra promise nodes to integrate in a chain.
If that's possible the doc could show and example/template to follow.