yieldToHost method
Yields execution to the host event loop, completing when the platform is ready to resume.
Implementation
@override
Future<void> yieldToHost() {
final completer = Completer<void>();
Timer(Duration.zero, completer.complete);
return completer.future;
}