--- /dev/null
+fork {
+ <<< "start" >>>;
+ 12::samp => now;
+ me.test_cancel();
+ <<< "stop" >>>;
+} @=> Fork ref f;
+
+1 => f.set_cancel;
+2::samp => now;
+0 => f.set_cancel;
+f.join();
--- /dev/null
+fork { <<< __func__ >>>; second => now; };
--- /dev/null
+fork {
+ fork {
+ <<< __func__ >>>;
+ second => now;
+ };
+ <<< __func__ >>>;
+ second => now;
+};
+
+samp => now;
--- /dev/null
+fork { <<< __func__ >>>; } @=> Fork ref f;
+second => now;
+f.join();
--- /dev/null
+fork { <<< __func__ >>>; minute => now; } @=> Fork ref f;
+f.join();