Closed ron-liu closed 6 years ago
Hrmm, this is interesting. Would you mind making a pr? Also, i've never seen run()
or promise()
yet. Is that part of immutable?
I will make a pr soon. The run() and promise() are part of folktale 2
, the next version.of data.task
. check their homepage.
I tried to do: given a list of functions which return tasks, run given tasks sequentially, and return the task of a list of returned values.
For the following case, I expected to output: 1 2 3, but it outputted: 3 2 1.
if I change the following code, it gave me 1 2 3, which is what I expected.
Not sure it is a issue, or by design.