File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -661,19 +661,19 @@ def bind_async_future(
661
661
>>> from returns.future import Future
662
662
>>> from returns.io import IOSuccess, IOFailure
663
663
664
- >>> def function(num: int) -> Future[int]:
664
+ >>> async def function(num: int) -> Future[int]:
665
665
... return Future.from_value(num + 1)
666
666
667
667
>>> assert anyio.run(
668
- ... RequiresContextFutureResult.from_value(1).bind_future (
668
+ ... RequiresContextFutureResult.from_value(1).bind_async_future (
669
669
... function,
670
670
... ),
671
671
... RequiresContextFutureResult.empty,
672
672
... ) == IOSuccess(2)
673
673
674
674
>>> failed = RequiresContextFutureResult.from_failure(':(')
675
675
>>> assert anyio.run(
676
- ... failed.bind_future (function),
676
+ ... failed.bind_async_future (function),
677
677
... RequiresContextFutureResult.empty,
678
678
... ) == IOFailure(':(')
679
679
You can’t perform that action at this time.
0 commit comments