Events: Difference between revisions

m
m (→‎{{header|Phix}}: added syntax colouring the hard way)
Line 704:
mx.msg_listen([WM_COPYDATA, WM_MOUSEWHEEL], VOID, #msgReceived)</lang>
 
=={{header|Mathematica}}/{{header|Wolfram Language}}==
Mathematica supports events from timers (via Pause[]), task schedule descriptors. This will print a message after 4 seconds, then terminate the program.
<lang Mathematica>Print["Will exit in 4 seconds"]; Pause[4]; Quit[]
1,111

edits