def wait_for_event(event):
f = Future()<EOL>def ready():<EOL><INDENT>get_event_loop().remove_win32_handle(event)<EOL>f.set_result(None)<EOL><DEDENT>get_event_loop().add_win32_handle(event, ready)<EOL>return f<EOL>
Wraps a win32 event into a `Future` and wait for it.