by 0x0aff374668 on 11/22/19, 7:57 PM with 4 comments
by komon on 11/22/19, 10:03 PM
Kyle Simpson (@getify on twitter and github) of You Don't Know JS fame has been working on a library for Javascript that wraps generators in a way that:
a) lets you use other Promise workflows to interact with them
b) lets you create a cancellation token that can be passed to a chain of asynchronous work to allow jobs to be cancelled all the way down that chain
among other goodies. Even if you're not working in the JS space, it's some really cool work to read about[1]
by SamReidHughes on 11/22/19, 10:44 PM
If your promise lib has cancellation built in, then adding a timeout to one is easy.