Hacker News new | ask | show | jobs
by adamwk 323 days ago
I don’t think this implements anything monad shaped
1 comments

Async is monad shaped. Not-async is monad-shaped, for a degenerate monad. Writing a function that works in both async and not-async contexts just means writing a function that works for any monad.