title: Raku shell function within start block won't end
body: <p>Why doesn't the shell function end after executing the command <code>echo $i</code> in start ?</p>
  
  <p>Code:</p>
  
  <pre><code>my $*SCHEDULER = ThreadPoolScheduler.new(:max_threads(2));
  my @promises = (^10).map: -&gt; $i {
      start {
          shell("echo $i");  # pending here
          say "after shell";
      }
  };
  await @promises;
  </code></pre>
  
  <p>It outputs:</p>
  
  <p>0
  1</p>