Created
March 24, 2020 16:10
-
-
Save alexandreservian/7966773183478f92e3e86eff6cf7c76c to your computer and use it in GitHub Desktop.
Exemplo usando after na macro receive
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
iex> receive do | |
...> msm -> msm | |
...> after | |
...> 1000 -> "nada aconteceu depois de 1s" | |
...> end | |
"nada aconteceu depois de 1s" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment