Handle a signal: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 2,032: Line 2,032:
=={{header|Wren}}==
=={{header|Wren}}==
Note that Thread.sleep not only suspends the current fiber but also the System.clock method (possibly unintended). We therefore have to add back on the time slept.
Note that Thread.sleep not only suspends the current fiber but also the System.clock method (possibly unintended). We therefore have to add back on the time slept.
<syntaxhighlight lang="ecmascript">import "scheduler" for Scheduler
<syntaxhighlight lang="wren">import "scheduler" for Scheduler
import "timer" for Timer
import "timer" for Timer
import "io" for Stdin
import "io" for Stdin