maybe_evaluate
Attempt to evaluate promise, even if obj is not a promise.
def maybe_evaluate(
obj: any
) - > any
Attempt to evaluate promise, even if obj is not a promise.
Parameters
| Name | Type | Description |
|---|---|---|
| obj | any | The object to be evaluated, which may or may not implement the maybe_evaluate protocol |
Returns
| Type | Description |
|---|---|
any | The evaluated result if the object supports evaluation, otherwise the original object itself |