Simple non-blocking web server
<p>I'm trying to make a simple non-blocking web server with Perl6, but most likely I don't understand something here.</p>

<h2>Example:</h2>

<pre class="lang-perl6 prettyprint-override"><code>#!/usr/bin/env perl6

use v6;

react {
    whenever IO::Socket::Async.listen('0.0.0.0', 8080) -&gt; $conn {
        whenever $conn.Supply(:bin) -&gt; $buf {
            say "-" x 70 ~ "\n" ~ $buf.decode('UTF-8').trim-trailing;
            sleep 5; # HERE
            my $response = "HTTP/1.0 200 OK\x0D\x0A\x0D\x0A";
            $response ~= q:to/END/;
                &lt;html&gt;
                &lt;head&gt;
                    &lt;title&gt;Demo page&lt;/title&gt;
                &lt;/head&gt;
                &lt;body&gt;
                &lt;h1&gt;Title here&lt;/h1&gt;
                &lt;p&gt;lorem ipsum here&lt;/p&gt;
                &lt;/body&gt;
                &lt;/html&gt;
                END
            await $conn.write: $response.encode('utf-8');
            $conn.close();
        }
    }
}
</code></pre>

<p>Example here is almost the same as the generic sample in documentation <a href="https://docs.perl6.org/type/IO::Socket::Async" rel="nofollow noreferrer">https://docs.perl6.org/type/IO::Socket::Async</a></p>

<h2>Question:</h2>

<p>Why the page is not served as parallel but in sequential order for all clients?</p>