title: How to schedule function calls execution in a queue?
body: <p>I have an interface </p>
  
  <pre><code>interface Methods {
      void MethodX(int X);
      void MethodY(int Y);
      // ...
  }
  </code></pre>
  
  <p>Interface implementation has to schedule calls to interface methods in a blocking queue (so that calls are executed sequentially). Is there any simple way to do that like?</p>
  
  <pre><code>Something.post(...);
  </code></pre>
  
  <p>Where ... is some wrapper call around MethodZ.</p>
  
  <p>Calls to interface are non-blocking (it is an AIDL interface), but internally each next call should be executed not before the previous one finishes.</p>