plenary.nvim icon indicating copy to clipboard operation
plenary.nvim copied to clipboard

[WIP] cancellation support for async functions

Open oberblastmeister opened this issue 3 years ago • 0 comments

If an async libuv action is running and libuv supports cancellation, the handle will be cancelled. This is supported for things like fs actions. If libuv does not support it, then it is still very useful because we perform a 'soft-cancel'. This means that whenever something yields, we never resume and just return, thus cancelling the coroutine. This can be used for things like timers and the coroutine abstractions in control.lua

oberblastmeister avatar Jun 21 '21 13:06 oberblastmeister