Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. my Int $i = 0; my Lock::Async $lock .= new; await $lock.protect-or-queue-on-recursion({ cas $int, { .succ }; $lock.protect-or-queue-on-recursion({ cas $int, { .succ } }); }); say $i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement