Skip to content

Instantly share code, notes, and snippets.

@mishelashala
Created July 27, 2020 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mishelashala/3ff49e010bb02798081153ced70c9e63 to your computer and use it in GitHub Desktop.
Save mishelashala/3ff49e010bb02798081153ced70c9e63 to your computer and use it in GitHub Desktop.
// resolve :: a -> Promise a
// reject :: a -> Promise a
// of :: a -> AsyncMonad a
// then :: (a -> b) -> Promise b
// map :: (a -> b) -> AsyncMonad b
// then :: (a -> Promise b) -> Promise b
// flatMap :: (a -> AsyncMonad b) -> AsyncMonad b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment