haxetink / tink_await

Haxe async/await
MIT License
58 stars 15 forks source link

how to cancel async ? #37

Open sonygod opened 4 years ago

sonygod commented 4 years ago

how to cancel async ? I can't find any keyword about cancel like

https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/task-cancellation?redirectedfrom=MSDN

kevinresol commented 4 years ago

I don't think it is possible to perform a cancellation in tink_await.

With plain tink_core you can implement with a CallbackLink

sonygod commented 4 years ago

@kevinresol I agree,but how about consider something like timeout in asynchronous?