Created
November 18, 2014 15:13
-
-
Save 5HT/ade8eae68e08000a4c8c to your computer and use it in GitHub Desktop.
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
main()-> #button{postback=validated}. | |
event(init) -> wf:reg(wf:peer(?REQ)). | |
event(validated) -> wf:wire("show spinner"), wf:async(fun() -> loop() end). | |
loop() -> do_extensive_work(), wf:wire("hide spinner"), wf:flush(wf:peer(?REQ)). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment