title: Wrapping an ES6 Class Method in a Coroutine
body: <p>I'm looking to make a class method into a coroutine:</p>
  
  <pre><code>import co from 'co';
  
  class AClass {
      co(*consutrctor() {
         console.log('is something like this possible?');
      })
  
      co(*get() {
          console.log('what about this?');
      })
  
      onlyWay() {
          return co(function* () {
              console.log('this is how I do it now');
          }.bind(this))();
      }
  }
  </code></pre>
  
  <p>In python this is easy with a decorator:</p>
  
  <pre><code>from asyncio import coroutine
  
  class AClass(object):
      @coroutine
      def get(self):
          print('some async task')
  </code></pre>