-
-
Save WimJongeneel/d41727471d3071f25626118c7a0f3a38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Output a given a' after a delay | |
* | |
* @param delay the delay in ms | |
* @param a the value to output | |
*/ | |
export const wait = <a = void>(delay: number, a: a = null): Cont<a> => | |
create_cont(cb => setTimeout(() => cb(a), delay)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment