Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def wait(future: Awaitable) -> "Wait":
"""
Create a new event that emits the value of the
awaitable when it becomes available and then set this event done.
:meth:`wait` and :meth:`__await__` are each other's inverse.
Args:
future: Future to wait on.
"""
return Wait(future)