title: What is the @Async equivilant for Quarkus application?
body: <p>In one class I want to call a method, but not have to wait until the method finishes. Normally in a spring application I would use @Async, but what is the way to go about in a Quarkus application?</p>
  <p>Beneath is a simple example to get started. In the 'StartWork' class the 'Work' gets started. (I left out the Work-interface, but you can see one of its implementations: WorkA). After calling 'work.do()' the startWork() method should proceed without waiting for the work.do() to finish.</p>
  <pre><code>@ApplicationScoped
  public class WorkA implements Work {
      public void do() {
          System.out.println(&quot;Starting work A.&quot;);
          try {
              Thread.sleep(1000l);
              System.out.println(&quot;Finished work A.&quot;);
          } catch(InterruptedException ex) {
              System.out.println(&quot;My work got interrupted.&quot;);
          }
      }
  }
  
  @ApplicationScoped
  public class StartWork {
  
  @Inject
  Work work;
  
      public void startWork() {
          work.do();
          System.out.println(&quot;I dont' care when and if the work finished, but it has started.&quot;);
      }
  }
  </code></pre>
  <p>Here is the same example, but now I've tried to use Mutiny:</p>
  <pre><code>@ApplicationScoped
  public class WorkA implements Work {
      public void do() {
          Uni.createFrom().voidItem().invoke(Runnable -&gt; {
              System.out.println(&quot;Starting work A.&quot;);
              try {
                  Thread.sleep(1000l);
                  System.out.println(&quot;Finished work A.&quot;);
              } catch(InterruptedException ex) {
                  System.out.println(&quot;My work got interrupted.&quot;);
              }
          }
      });
  }
  
  @ApplicationScoped
  public class StartWork {
  
  @Inject
  Work work;
  
      public void startWork() {
          work.do();
          System.out.println(&quot;I dont' care when and if the work finished, but it has started.&quot;);
      }
  }
  </code></pre>
  <p>When running this example I do not see the lines being printed. So I guess the anonymous runnable is not invoked?</p>
  <p>Minimal reproducible product: <a href="https://gitlab.com/rmvanderspek/quarkus-multithreading" rel="nofollow noreferrer">https://gitlab.com/rmvanderspek/quarkus-multithreading</a></p>