(output, input, seal) <- spawn' buffer ...Use the seal action to allow early cleanup of readers and writers to the mailbox without waiting for the next garbage collection cycle.
withSpawn buffer $ \(output, input) -> ...withSpawn is exception-safe, since it uses bracket internally.