Support to call coroutines from external code and wait them with tasks