There are two ways you can restart with the standard interface:
- create a new task (start over) and maybe delete the old task
- implement the task as a generator that can repeatedly yield values
I think this is as good as you can hope for without lots of other interfaces (and since you can implement all the promise types yourself, you can do that too).
- create a new task (start over) and maybe delete the old task
- implement the task as a generator that can repeatedly yield values
I think this is as good as you can hope for without lots of other interfaces (and since you can implement all the promise types yourself, you can do that too).