Created
April 26, 2015 02:27
-
-
Save TheSeamau5/3d7009fd22402b772fa1 to your computer and use it in GitHub Desktop.
Kill thread in Elm
This file contains hidden or 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
| /* | |
| kill : ThreadID -> Task x () | |
| */ | |
| function kill(id){ | |
| return asyncFunction(function(callback){ | |
| window.clearTimeout(id); | |
| callback(succeed(Utils.Tuple0)); | |
| }); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment