nadako / haxe-coroutines

41 stars 5 forks source link

Cancellation support #5

Closed bynuff closed 6 years ago

bynuff commented 7 years ago

Think about how we may cancel suspend. In C# it's CancellationTokenSource with CancellationToken. And what behaviour then we get after cancellation.

nadako commented 6 years ago

With a design proposed in this repository, this is left to the specific promise/task implementation, since the proposed coroutine support is lower level and more generic.