Implement consumeAsync function.
Merge pull request #2 from HolymarsHsieh/ConsumeAsync

Implement consumeAsync function.