Comment

Comment by Mitranim

Posterus provides coroutines just for that: https://github.com/Mitranim/posterus#routine

Posterus coroutines are similar to async/await, but cancelable and free of `await`'s race condition problem (promise can get rejected before `await` attaches a handler).

parent Mitranim 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton