Async functions should not be generator functions

Fixes #1009