add latch await
Merge pull request #1249 from ahmetmircik/issue1208_master

Issue #1208