Return the result of the first awaitable to finish.
The other awaitables will be cancelled. The first awaitable determines
the expected return type, and all other awaitables must return either the
same return type or None
.
Notes
Taken from https://stackoverflow.com/questions/31900244/
- Parameters:
args (Coroutine
[None
, None
, TypeVar
(T
)])
- Return type:
Optional
[TypeVar
(T
)]