Use an atomic variable for async blocks
Merge pull request #18 from github/atomic-async-blocks-upstream

Use an atomic variable for async blocks