Raku Cases › Concurrency

Concurrency

Promise, Supply, Channel, react and whenever, locks and threads.

169 rules from 84 tests. 76 of those tests are confirmed on both engines: Raku++ and Rakudo 2026.11 both pass, or Raku++ gives Rakudo's answer on every probe of a family. The verdict is the test's, not each rule's. How to read a case.

async-socket-supply-and-decoderRaku++ passesRakudo passes2026-09-17 · 3c93d667
  1. 3

    whenever $socket, with no .Supply, taps the socket instead of running its body once with the socket as the topic.

  2. 4

    done inside a whenever handler over an async socket ends the enclosing react.

More from this test: Strings & Unicode (2).

async-socket-tapsRaku++ passesRakudo passes2026-09-12 · b4675bca
  1. 1

    A whenever over a Channel inside a supply block runs its body once per value sent, with that value as the parameter, not once with the Channel itself.

  2. 2

    Closing one tap of an IO::Socket::Async connection's .Supply does not close the socket, so a second tap on the same connection still receives data.

  3. 3

    A react block closes the taps it made when it ends, and a closed tap stops consuming data from the socket, so later taps receive the bytes that follow. inferred

  4. 5

    done inside a LAST phaser of a whenever closes the enclosing react. inferred

More from this test: Hashes & sets (1).

atomic-formsRaku++ passesRakudo passes2026-08-07 · 72eca56f
  1. 1

    The ⚛ operators act atomically on an atomicint: $x⚛++ and $x⚛-- return the old value, ++⚛$x and --⚛$x the new one, prefix ⚛$x reads, and ⚛+=/⚛-= return the value after.

    with $a at 6, $a⚛++ returns 6 and leaves 7, then ++⚛$a returns 8

  2. 2

    atomic-fetch-add returns the old value and adds to the variable.

    with $a at 42, atomic-fetch-add($a, 8) returns 42 and leaves 50

  3. 3

    ⚛= on an atomicint coerces a numeric value and throws for a Str, leaving the value untouched, while on a plain Scalar it stores any value.

    $a ⚛= 4.5 stores 4

  4. 4

    Concurrent $x⚛++ increments from several threads are never lost.

More from this test: divergences (1).

audited-language-gaps-1Raku++ passesRakudo passes2026-10-04 · 76f5426d
  1. 9

    Promise, Channel and Supply do the Awaitable role.

More from this test: Containers & assignment (1), Exceptions & control flow (1), Hashes & sets (1), Lists & laziness (2), Operators (1), Regexes & grammars (2), Signatures & dispatch (3), Syntax & parsing (2).

builtin-object-identity-whichRaku++ passesRakudo passes2026-10-03 · 88890183
  1. 1

    Each Promise, Channel, Supplier, Lock and similar built-in object has its own identity .WHICH (an ObjAt), which does not change when its state does.

    .unique keeps three distinct Promises, and a Set of two Promises has two elements

calls-rakudo-refusesRaku++ passesRakudo passes2026-11-14 · 6de9d27b · rakudo#1644
  1. 3

    Lock.protect given a Hash instead of code is refused.

More from this test: Classes, roles & the MOP (2), Strings & Unicode (2).

channel-pipe-clone-issues-144-148Raku++ passesRakudo passes2026-10-11 · c87cceb7 · #145
  1. 2

    Channel.list hands out each item as it arrives, without waiting for the channel to be closed.

More from this test: Containers & assignment (1), I/O & processes (1).

closed-tap-calls-no-doneRaku++ passesRakudo passes2026-11-08 · e1bd580c
  1. 1

    Closing the tap of a supply block calls none of the tapper's callbacks, while a supply that runs out still calls done and the block's CLOSE phaser still runs on a close.

    supply { whenever Supply.interval(10) { } }.tap(done => {…}).close does not run the done callback

concurrent-match-scopingRaku++ passesRakudo passes2026-08-10 · 862f352f
  1. 2

    A match inside a start block sets that block's own $/, not one shared with other threads. inferred

cro-core-clusterRaku++ passesRakudo passes2026-08-06 · 9c84434c
  1. 4

    Type checks and introspection on an on-demand Supply do not run its block.

    isa-ok on a supply { … } does not tap it

  2. 5

    Draining a supply waits for a whenever on a still-pending Promise inside it.

  3. 6

    .Channel on an on-demand supply is a live conversion: values emitted after the conversion still arrive on the channel.

  4. 9

    A broken Promise or a quitting supply in a react block's whenever that has no QUIT phaser makes the react throw.

More from this test: Containers & assignment (1), Classes, roles & the MOP (2), Regexes & grammars (1), Scoping & phasers (1).

cro-install-engine-fixesRaku++ passesRakudo passes2026-10-10 · 29f5aa55
  1. 3

    return inside a tap's quit handler leaves the routine around the emit.

  2. 8

    .schedule-on($*SCHEDULER) runs the tap's callbacks on the scheduler, off the emitter's thread.

  3. 9

    A die in a whenever block's LAST phaser quits the supply.

  4. 17

    The Supply .schedule-on returns is as .live as its source.

More from this test: I/O & processes (1), Lists & laziness (1), Classes, roles & the MOP (1), Regexes & grammars (1), Signatures & dispatch (7), Strings & Unicode (1), Syntax & parsing (2).

emit-waits-for-busy-supply-on-another-threadRaku++ passesRakudo passes2026-10-30 · f3ffb5c3
  1. 1

    An emit into a supply block that another thread is running waits for it, and the value is handled by the time emit returns.

fail-in-start-breaks-promiseRaku++ passesRakudo passes2026-11-08 · fa0cc7aa
  1. 1

    A fail written in a start block throws, there being no routine to return a Failure from, so the promise is Broken with its exception, also for a start inside a routine.

  2. 2

    A Failure.new that a start block answers is a kept value, and a routine the block calls still returns its Failure.

flat-squish-and-exit-from-a-workerRaku++ passesRakudo passes2026-07-26 · efafccfc
  1. 5

    exit ends the whole process from whatever thread calls it.

    start { sleep 1; exit } ends the program

More from this test: Dates & times (1), Lists & laziness (3).

head-tap-single-doneRaku++ passesRakudo passes2026-07-24 · 2ff0ed06
  1. 1

    A tap on Supply.head(n) (or .first) receives done exactly once when it reaches its limit, even if the source completes afterwards.

hyper-configuration-remembers-argsRaku++ passesRakudo passes2026-09-11 · 6d82fac4
  1. 1

    .hyper(:batch, :degree).configuration reports the batch and degree that were passed, not the defaults.

    @a.hyper(:batch(42)).configuration.batch is 42

hyper-for-over-threadsRaku++ passesRakudo passes2026-09-27 · 9c631a00
  1. 1

    hyper for and race for run the loop body on worker threads, while the values, next, last and a write through $_ come out as the serial loop gives them.

  2. 2

    $*THREAD inside a start block or any other worker is a Thread other than the initial thread.

hyper-seq-map-over-threadsRaku++ passesRakudo passes2026-10-09 · 0f15e190
  1. 2

    .map or .grep on a HyperSeq or RaceSeq answers a HyperSeq or RaceSeq again, in source order for .hyper, and it can be read once, as a Seq.

  2. 3

    A die in the block of a .hyper or .race .map/.grep reaches the caller as an exception doing X::HyperRace::Died.

  3. 4

    :batch and :degree given to .hyper or .race carry on through .map and .grep, from a Range too.

More from this test: divergences (1).

issue-18-react-phasersRaku++ passesRakudo passes2026-08-08 · 9ecdef36 · #18
  1. 1

    A react block's body runs to its end before any whenever receives a value.

    a say at the end of the body prints before the first emitted value

  2. 2

    A LAST phaser in a whenever fires when its supply is exhausted, and it sees the block's parameter as of the last invocation.

  3. 3

    A die in a whenever body ends the react and propagates, and a QUIT phaser does not catch it.

issue34-named-coercion-and-awaitRaku++ passesRakudo passes2026-08-26 · 27b07a35 · #34
  1. 2

    await on an object of a class that does Awaitable returns the awaited result, not the object.

More from this test: Signatures & dispatch (1).

issue34-supply-linesRaku++ passesRakudo passes2026-08-26 · 27b07a35 · #34
  1. 1

    .lines and .words on a live Supply split the stream irrespective of message boundaries, holding an unfinished tail between messages and delivering it when the source is done.

    whenever $input.lines(:!chomp) -> $line { … }

live-channel-supply-hops-threadsRaku++ passesRakudo passes2026-10-03 · 3fa9dcaf
  1. 1

    $supplier.Supply.Channel.Supply delivers through the channel on another thread than the emitter's, with the values in order and done after them.

lock-condition-variable-typeRaku++ passesRakudo passes2026-10-31 · 57a9a792 · #77
  1. 1

    Lock.condition returns a Lock::ConditionVariable, a type a program can name.

    has Lock::ConditionVariable $!available composes

logical-newlinesRaku++ passesRakudo passes2026-08-26 · e25ccecb · #34
  1. 3

    .lines/.words on a live Supply hold back a tail that could still grow into a line terminator, such as a lone \r, until the next message.

More from this test: I/O & processes (1), Strings & Unicode (1).

negated-reduce-and-blocking-receiveRaku++ passesRakudo times out2026-07-25 · 87bdca82
  1. 2

    Channel.receive blocks until an item arrives.

More from this test: Operators (1).

proc-async-eager-startRaku++ passesRakudo passes2026-08-25 · 90b6d7c5 · #29
  1. 1

    Proc::Async.start spawns the process at once, whether or not the returned Promise is ever awaited.

    a fire-and-forget .start with no await still launches the child

proc-async-in-supply-blockRaku++ passesRakudo passes2026-10-02 · 925260b1
  1. 1

    A Proc::Async started inside a supply { … } block delivers its output to its taps as it arrives, without anything awaiting its promise.

  2. 2

    whenever $proc.start in a supply block fires when the process has finished, with the Proc.

More from this test: I/O & processes (1).

proc-async-runs-without-awaitRaku++ passesRakudo passes2026-10-04 · fb6b80d4
  1. 1

    A started Proc::Async runs, feeds its taps and settles its promise without anything awaiting it.

  2. 2

    When the timer wins Promise.anyof($proc-promise, Promise.in($t)), the process promise stays intact and .kill still ends the process and settles it. inferred

  3. 3

    A Proc::Async stream asked for before the start keeps what the child wrote until its first tap arrives, with its done if the stream has already ended.

proc-stream-tap-fidelityRaku++ passesRakudo passes2026-08-28 · 82d03385
  1. 3

    whenever $proc.stdout.lines inside a supply { } block taps the process's output stream.

  2. 4

    A .then block attached to the Promise returned by Proc::Async.start runs only after the process has finished, not when it is registered.

  3. 5

    The result of the Promise returned by Proc::Async.start is a finished Proc (which has .signal), not the Proc::Async object.

More from this test: I/O & processes (2).

promise-combinator-thenRaku++ passesRakudo passes2026-09-27 · 9c631a00
  1. 1

    .then on a Promise.allof or Promise.anyof runs its block only once the combinator has settled, and the promise it returns is not Kept before that.

  2. 2

    A Promise.allof/Promise.anyof nested inside another combinator settles the outer one when its own members settle.

  3. 3

    A .then on a combinator that has a Promise.in timer member settles at the timer's moment.

promise-planned-boolRaku++ passesRakudo passes2026-07-24 · 6fb54537
  1. 1

    A Promise that is still Planned is False in boolean context; only a Kept or Broken promise is True — for start, timer and combinator promises alike.

promise-whenever-fires-later-and-in-turnRaku++ passesRakudo passes2026-10-30 · 1676fc8a
  1. 1

    A whenever $promise in a supply or react block whose promise settles later runs its body on the thread pool after keep returns, and one body at a time with the block's other whenevers.

quoted-literal-backslashRaku++ passesRakudo passes2026-08-04 · 6598ae5a
  1. 2

    Supplier is a type name. inferred

More from this test: Regexes & grammars (1).

rak-chain-install-gapsRaku++ passesRakudo passes2026-10-10 · e1663c0c
  1. 6

    A Lock instance boolifies True.

    $lock.protect(&code) if $lock runs

More from this test: Hashes & sets (1), Classes, roles & the MOP (1), Signatures & dispatch (1), Types & coercion (2).

rakudo-t-language-gaps-5Raku++ passesRakudo passes2026-10-05 · 98ddcee4
  1. 3

    .fail after .close leaves a Channel's .closed promise Kept.

More from this test: Compile-time errors (1), Classes, roles & the MOP (1), Everything else (2), Signatures & dispatch (2), Stringification (1).

rakuglaze-round-5Raku++ passesRakudo passes2026-10-03 · 60477ffd
  1. 1

    A Supply that quits hands out a .list that raises only when it is read past the values emitted, so a sunk .list raises nothing.

More from this test: Containers & assignment (1), Lists & laziness (1), Scoping & phasers (1), Types & coercion (1).

rakuglaze-round-6Raku++ passesRakudo passes2026-10-09 · 8902cac9
  1. 12

    .share on a supply block taps it live.

More from this test: Exceptions & control flow (1), Hashes & sets (2), I/O & processes (1), Lists & laziness (2), Classes, roles & the MOP (1), Regexes & grammars (1), Scoping & phasers (1), Syntax & parsing (2).

react-body-fed-from-inside-a-supply-blockRaku++ passesRakudo passes2026-10-30 · 9cac10e4
  1. 1

    A react's whenever over a Supplier runs its body as part of the react, whatever supply block is delivering on the emitting thread: a whenever inside it joins the react, the react waits for it, and a done there ends the react.

react-channel-closed-and-turnsRaku++ passesRakudo passes2026-11-12 · b4f6e472 · rakudo#3686 · rakudo#4853
  1. 1

    In a react, whenever $ch.closed { done } fires when the channel is closed after the react has started.

  2. 2

    In a react, a whenever $promise body runs once the promise is kept even while a whenever $channel on an empty channel waits beside it.

    react { whenever $stop { done }; whenever $c { } } ends once $stop is kept

More from this test: divergences (1).

react-died-names-the-reactRaku++ passesRakudo passes2026-10-08 · f8119890
  1. 1

    An error that leaves a react does X::React::Died, whether the react body or a whenever body died, on the react's thread or on a worker, or a source quit.

  2. 2

    The gist of an error that left a react includes the location of the react block.

  3. 3

    A CATCH inside a react sees the error as raised, without the X::React::Died role.

More from this test: divergences (1).

react-done-and-timerRaku++ passesRakudo passes2026-07-24 · 6bbf7d35
  1. 1

    done inside whenever $supplier.Supply { … } ends the enclosing react block.

    react { whenever $data { …; done } } returns

react-done-closes-supply-tapsRaku++ passesRakudo passes2026-10-02 · 925260b1
  1. 1

    A react that ends with done closes its whenever subscriptions, so a tapped supply block's CLOSE phasers run at that moment.

react-last-done-from-another-threadRaku++ passesRakudo passes2026-10-30 · 5b70d2e1
  1. 1

    done inside a react whenever's LAST ends the react also when the source is a Supplier finishing on another thread.

    whenever $conn.messages { … LAST done } ends its react when the supply finishes

react-promise-body-in-turnRaku++ passesRakudo cannot run it2026-11-03 · 116a638e
  1. 1

    A react runs its bodies one at a time: a whenever $promise body waits while another body of the react runs.

    in a body doing $v.keep(1); log 'after keep', 'after keep' is logged before the kept promise's whenever body runs

  2. 2

    A promise already kept when its whenever is registered in a react runs its body after the body that registered it, not inline.

react-socket-last-at-eofRaku++ passesRakudo passes2026-10-10 · 29f5aa55
  1. 1

    A whenever $conn.Supply in a react runs its block's LAST phaser when the peer closes the connection, and a done in that phaser ends the react.

return-in-mainline-start-blockRaku++ passesRakudo passes2026-11-14 · ce54f928 · rakudo#2753
  1. 1

    A return in a start block made outside every routine breaks its Promise with X::ControlFlow::Return.

    Also held by start-return.

roast-3log-batch3Raku++ passesRakudo passes2026-09-28 · fdc70ae4
  1. 1

    A whenever over a merged Supply that includes a signal installs the signal handler before the react body goes on.

More from this test: Modules (6).

roast-sweep-runtimeRaku++ passesRakudo cannot run it2026-09-28 · 2cc896bd
  1. 38

    A consumer's done runs the supply's CLOSE on the running body's lexicals, so it can end the supply's emitting loop at once. inferred

  2. 52

    A Promise subclass makes promises of its own type, and they work as Promises. inferred

More from this test: Compile-time errors (4), Containers & assignment (2), Exceptions & control flow (2), Hashes & sets (4), I/O & processes (3), Lists & laziness (5), Modules (2), Classes, roles & the MOP (8), Operators (4), Everything else (1), Regexes & grammars (1), Scoping & phasers (14), Stringification (1), Strings & Unicode (1), Types & coercion (3).

scalars-nil-junction-complex-dateRaku++ passesRakudo passes2026-07-27 · ebbe10f3
  1. 10

    Supply.words and Supply.lines treat the stream as one concatenated string rather than splitting each emitted message separately.

More from this test: Containers & assignment (1), Dates & times (1), Numerics (3), Classes, roles & the MOP (1), Operators (1), Everything else (1), Stringification (1), Syntax & parsing (1), Types & coercion (1).

scheduler-cue-die-reportedRaku++ passesRakudo passes2026-11-08 · d3ab58de
  1. 1

    Code cued on the scheduler that dies with nothing to catch it is reported — "Unhandled exception in code scheduled on thread N", the error and its backtrace — and ends the process with exit status 1, a cue with :in too.

  2. 2

    A cue's :catch, and after it the scheduler's uncaught_handler when one is set, receives the exception of cued code that dies, and the program goes on.

signal-supplyRaku++ passesRakudo passes2026-07-24 · 16bef8a1
  1. 1

    signal(SIGINT) is a Supply that emits when the process receives the signal, so react { whenever signal(SIGINT) { …; done } } handles it.

sparrow6-blockersRaku++ passesRakudo passes2026-08-23 · e0c46be1
  1. 2

    Inside a react, a whenever on a Proc::Async's stdout (or stdout.lines) fires for the output of the process started by a sibling whenever $proc.start.

  2. 3

    Proc::Async.ready exists, and a whenever $proc.ready fires once the process has started.

More from this test: I/O & processes (1), Syntax & parsing (1).

sunk-start-reportedRaku++ passesRakudo passes2026-11-08 · bc6faf15
  1. 1

    A sunk start whose code dies is reported, "Unhandled exception in code scheduled on thread N" and the error, and ends the process with status 1, or goes to the scheduler's uncaught_handler when one is set; a sunk call that answers a start and start … for … count too.

  2. 2

    A start that is kept, assigned or awaited is not reported when it dies, and neither is a sunk Promise.start or a sub's Promise.broken.

supplier-preserving-is-its-own-typeRaku++ passesRakudo passes2026-11-02 · 42618157
  1. 1

    Supplier::Preserving.new is a Supplier::Preserving: its .^name says so and it smartmatches the type.

    Supplier::Preserving.new ~~ Supplier::Preserving is True

supply-await-list-read-chdir-pathRaku++ passesRakudo passes2026-11-14 · fa8d1ea7
  1. 1

    A react or supply body that awaits keeps its context, so a whenever, emit or done after the await still works.

  2. 2

    .list on a supply that finishes later taps it once, so an on-demand supply's body runs once.

  3. 5

    Supply.from-list follows the single-argument rule.

    Supply.from-list([42]) emits 42, not the array

More from this test: I/O & processes (2).

supply-block-map-grep-on-demandRaku++ passesRakudo passes2026-10-03 · 3fa9dcaf
  1. 1

    .map, .grep and .do on an on-demand Supply (a supply {} block) are on-demand too: each taps the source only when it is tapped itself.

supply-block-merge-is-liveRaku++ passesRakudo passes2026-10-02 · 925260b1
  1. 1

    merge, zip and zip-latest on a supply { … } block subscribe when tapped instead of draining the block first, so a block that never ends does not hang them.

supply-block-whenever-orderingRaku++ passesRakudo passes2026-09-18 · b9a8d73e
  1. 1

    A whenever over a synchronous source subscribes at once but does not run its body inline: events delivered while a block or body is running wait their turn, so one whenever's body never nests inside another's.

  2. 2

    done stops the supply or react block it is in.

  3. 3

    last inside a whenever body closes that whenever.

  4. 4

    An explicit done does not run a whenever's LAST phaser. inferred

  5. 5

    CLOSE phasers of a supply block do not run in declaration order. inferred

  6. 6

    Closing the tap of a supply block closes the sources its whenevers subscribed to.

  7. 7

    A whenever's argument is coerced with Supply().

  8. 8

    A QUIT phaser in a whenever is honoured, and a supply-block-level QUIT does not swallow an exception thrown by a whenever body. inferred

supply-channel-supply-liveRaku++ passesRakudo passes2026-07-24 · f5ec13a9
  1. 1

    $supplier.Supply.Channel.Supply on a live supplier forwards values emitted afterwards, delivering them on another thread after the emit has returned.

supply-close-before-quitRaku++ passesRakudo passes2026-11-08 · e9bb987d
  1. 1

    When a supply block's own code dies — in the block, a whenever arm, a LAST or a QUIT phaser that dies — its CLOSE phasers run before the tapper's quit handler is called.

  2. 2

    A done in a supply block runs the CLOSE phasers before the tapper's done callback.

  3. 3

    A source's quit that only passes through a supply block, a source's done and a block that runs out reach the tapper first, then CLOSE runs.

supply-combinatorsRaku++ passesRakudo does not pass2026-09-18 · b9a8d73e
  1. 1

    Supply.reduce emits a value even when its source is empty. inferred

  2. 2

    Supply.migrate demands that its source emit Supplies and does not pass plain values through.

  3. 3

    Supply.classify and Supply.categorize emit key => Supply Pairs, and keep the keys 1 and "1" distinct.

  4. 4

    Supply.comb does not join pieces across chunk boundaries, and honours its limit.

  5. 5

    Supply has the combinators encode, decode, zip-latest, throttle and share.

  6. 6

    Supply.unique(:expires), Supply.squish(:with) and Supply.repeated take effect.

  7. 7

    Supply.rotor emits Arrays, and Supply.batch emits its values in batches.

  8. 8

    Supply.elems answers a supply of running counts, not a single count.

  9. 9

    A one-parameter &by given to Supply.min or Supply.max is not called as a two-argument comparator.

  10. 10

    Supply.zip emits itemized tuples.

supply-delayed-delays-done-and-quitRaku++ passesRakudo passes2026-11-12 · ac81f621
  1. 1

    Supply.delayed delays the source's done and quit by its window, as it delays the values.

    $s.emit(1); $s.quit(…) on a .delayed(0.3) delivers 1 and then quits

supply-deliveries-across-threadsRaku++ passesRakudo passes2026-09-28 · 1a2826ea
  1. 2

    A supply block runs one whenever body at a time, including the bodies of whenever Promise.in(…) and whenever $channel.

supply-factories-and-coercersRaku++ passesRakudo does not pass2026-09-18 · b9a8d73e
  1. 1

    Supply.on-demand creates an on-demand supply.

  2. 2

    Asking a Supply.interval for its list drives the supply and yields its ticks.

  3. 3

    Supply.wait answers the last value emitted, not True.

  4. 4

    .list on a live Supply keeps every value emitted between the call and the read.

  5. 5

    Supply.Seq answers a Seq.

  6. 6

    await on a supply that quit throws the exception rather than answering Any.

supply-interval-per-connectionRaku++ passesRakudo passes2026-11-11 · ca60fcc7 · #16
  1. 1

    The ticks of a Supply.interval($delay) started inside a connection's handler are spaced by the delay.

supply-interval-tickerRaku++ passesRakudo passes2026-08-07 · 9177baa5
  1. 1

    Supply.interval emits ascending Ints starting at 0, the first at once and then one per interval of real time.

  2. 2

    Supply.interval never ends on its own: it runs until done or last ends the subscription, or until a direct tap is closed with .close.

  3. 3

    The two-argument form of Supply.interval delays the first tick.

supply-on-close-and-close-phaser-scopeRaku++ passesRakudo passes2026-10-30 · 2adfaa34
  1. 1

    .on-close wraps a supply without running it.

    supply { whenever $channel { … } }.on-close({ … }) returns at once

  2. 2

    Closing the tap of a supply made with .on-close runs the hook.

More from this test: Scoping & phasers (1).

supply-promise-whenevers-in-keep-orderRaku++ passesRakudo passes2026-11-03 · 7a419af4
  1. 1

    A supply block's whenever $promise bodies run in the order their promises are kept.

    ten promises kept 0 to 9 in a row emit their values in that order

supply-protocol-lifecycleRaku++ passesRakudo does not pass2026-09-18 · b9a8d73e
  1. 1

    Supply.new throws X::Supply::New.

  2. 2

    Supply.serial answers whether the supply is serial. inferred

  3. 3

    After done, a Supplier no longer feeds the taps that were told done.

  4. 4

    A re-entrant emit does not nest inside the emitting tap's own handler.

  5. 5

    Supplier.quit with no quit handler on the tap surfaces the exception in the emitter.

  6. 6

    Supplier::Preserving replays to its first tap the values emitted before anything tapped it. inferred

  7. 7

    Supply.from-list applies the single-argument rule to its argument list as a whole, not to each argument.

  8. 8

    The exception a Supply combinator throws for bad arguments carries a .combinator naming it.

  9. 9

    An exception thrown in a Supply's .map or .do block does not escape the tap call and kill the program.

supply-stable-delayed-liveRaku++ passesRakudo passes2026-10-02 · 925260b1
  1. 1

    Supply.stable and Supply.delayed work on a live Supply and act by time.

  2. 2

    Supply.stable(0) and Supply.delayed(0) are the Supply itself.

supply-tapper-death-is-not-a-quitRaku++ passesRakudo passes2026-10-30 · e9455bfa
  1. 1

    When a tapper dies on a value a supply block emits, the supply neither quits nor closes, and later values are still delivered.

  2. 2

    An exception a tapper throws comes out of emit to whoever delivered the value (the emitter's .emit, the caller of .tap, or a Promise's then); the supply block's own CATCH does not see it, though a CATCH in the whenever body does.

  3. 3

    A whenever body's own death quits the supply.

    Also held by tapper-death-to-scheduler.

  4. 4

    A react that taps a supply dies when the body of its whenever dies.

supply-timers-and-unique-orderRaku++ passesRakudo passes2026-10-02 · 925260b1
  1. 1

    Values delayed by the same time come out of Supply.delayed in their original order.

    Supply.from-list(7, 8, 9).delayed(0.1) emits 7, 8, 9

  2. 2

    A live Supply's .unique and .squish compare values by identity (WHICH), not by their Str.

    1, "1" and <1> are three values; two IO::Notification::Change for the same path and event are one

tapper-death-to-schedulerRaku++ passesRakudo passes2026-11-08 · ea460d2a
  1. 1

    A tapper that dies on a value a supply delivers from Supply.interval or a Channel hands its error to the scheduler — reported with exit status 1, or given to uncaught_handler when one is set — and the supply does not quit.

  2. 2

    With an uncaught_handler set, a Channel-fed supply goes on delivering after its tapper dies, and a Supply.interval stops ticking.

then-callback-off-settler-threadRaku++ passesRakudo passes2026-10-03 · 3fa9dcaf
  1. 1

    A .then callback registered on a pending promise runs on a worker of its own once the promise settles, not inline on the settler's thread, so an await in the callback may wait on work the settler still has to do.

threads-own-match-var-nativeRaku++ passesRakudo passes2026-11-11 · 86a5058f · #209
  1. 1

    Each thread has its own $/: matches in a start block do not write the spawning thread's $/ or $0.

timed-waits-not-cappedRaku++ passesRakudo passes2026-11-11 · ca60fcc7 · #41
  1. 1

    sleep, sleep-timer, sleep-until, Promise.in and Promise.at wait the full time asked for, past one second too.

    sleep(333) does not return after one second

  2. 2

    A timer Promise from Promise.in or Promise.at is Planned until its time comes.

todo-small-divergencesRaku++ passesRakudo passes2026-10-10 · 79f0bc7c
  1. 15

    A HyperSeq over an endless source stays a HyperSeq through .map.

More from this test: Containers & assignment (2), Lists & laziness (3), Classes, roles & the MOP (2), Operators (1), Regexes & grammars (1), Scoping & phasers (2), Stringification (3), Types & coercion (3).

vow-keep-needs-valueRaku++ passesRakudo passes2026-11-08 · b4cb4a06
  1. 1

    A Vow's .keep and .break require their value argument, while a Promise's own .keep and .break default to True and "Died".

    $vow.keep dies "Too few positionals passed; expected 2 arguments but got 1"

whenever-coerces-user-class-supplyRaku++ passesRakudo passes2026-10-30 · be510e3a
  1. 1

    whenever $obj taps the Supply that the object's own Supply method returns when $obj's class defines one, rather than running the body once with the object as the value.

whenever-done-semanticsRaku++ passesRakudo passes2026-08-07 · 9177baa5
  1. 1

    done exits the whenever block it is in, so code after it does not run.

  2. 2

    done in a plain supply body ends the body at that point.

  3. 3

    whenever $supplier given a raw Supplier taps its .Supply; the block does not run at once with the Supplier as topic.

  4. 4

    whenever $promise on an unkept Promise registers the block, which fires once with the kept value when the Promise settles.

    whenever $kill { done } fires only when $kill is kept

whenever-nested-sub-and-react-teardownRaku++ passesRakudo does not pass2026-07-24 · 21e46c1a
  1. 1

    whenever inside a sub lexically nested in a supply/react block compiles, while whenever in a top-level sub is a compile-time error.

  2. 2

    A react block's signal taps are closed when the block ends, so a signal arriving after done does not run the whenever body again.

whenever-promise-emit-preservingRaku++ passesRakudo passes2026-07-24 · 1b26c654
  1. 1

    whenever $promise in a supply block stays dormant while the promise is unkept and runs its body with the promise's result, not the promise, once it is kept.

  2. 2

    whenever Promise.in(N) fires its block once, after N seconds, not immediately.

    Also held by react-done-and-timer.

  3. 3

    Inside a supply, .emit and .take with no explicit invocant act on the topic $_.

  4. 4

    Supplier::Preserving buffers emitted values and replays them to a whenever that taps later.

whenever-supply-transform-chainRaku++ passesRakudo does not pass2026-07-24 · 9f614e6f
  1. 1

    whenever $supplier.Supply.head(n) (or .grep, .map, …) applies the transform to what the block receives and completes when the transformed supply does, letting the enclosing react finish.

    whenever $s.Supply.head(2) delivers two values, then the react ends

worker-exit-runs-endRaku++ passesRakudo passes2026-11-09 · e205f9ae
  1. 1

    An exit called on a worker thread runs the END phasers before the process ends, and the process status is the worker's.

    END say "end"; start { exit 3 }; sleep 1 prints "end" and ends with status 3

  2. 2

    An unhandled error in cued code runs the END phasers and ends the process with status 1.