Skip to content

Instantly share code, notes, and snippets.

@shugo
Last active October 25, 2022 01:26
Show Gist options
  • Save shugo/4a535cea6a3a2bdab7c2225326a080bd to your computer and use it in GitHub Desktop.
Save shugo/4a535cea6a3a2bdab7c2225326a080bd to your computer and use it in GitHub Desktop.
Perfume Coroutine Test
excelsior:perfume$ cat t.prfm
set c [coro {
println "1st step";
pause;
println "2nd step";
}];
$c next; # → "1st step"
$c next; # → "2nd step"
$c release;
excelsior:perfume$ perfumesh t.prfm
*** receive SIGSEGV by sig_cstack_running_handler.
coroutine id: 1
flag: 11
si_signo: 11
si_errno: 0
si_code: 0
si_pid: 0
si_uid: 0
si_status: 0
si_addr: 0000000000000000
si_value: 0
Overflow handler is not installed, at 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment