types
is_future(obj)
¶
Checks if an object is a future narrowing the type.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
obj |
Future[T]
|
Object to check |
required |
Returns:
Type | Description |
---|---|
TypeGuard[Future[T]]
|
TypeGuard[Future[T]]: True if it is a future |