Skip to content

Commit

Permalink
kiwipy.Future -> concurrent.futures.Future
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Dec 14, 2024
1 parent 8ac05b0 commit 0190e9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plumpy/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ def message_receive(self, _comm: Communicator, msg: Dict[str, Any]) -> Any:

def broadcast_receive(
self, _comm: Communicator, body: Any, sender: Any, subject: Any, correlation_id: Any
) -> Optional[kiwipy.Future]:
) -> Optional[concurrent.futures.Future]:
"""
Coroutine called when the process receives a message from the communicator
Expand Down Expand Up @@ -962,7 +962,7 @@ def broadcast_receive(

return fn

def _schedule_rpc(self, callback: Callable[..., Any], *args: Any, **kwargs: Any) -> kiwipy.Future:
def _schedule_rpc(self, callback: Callable[..., Any], *args: Any, **kwargs: Any) -> concurrent.futures.Future:
"""
Schedule a call to a callback as a result of an RPC communication call, this will return
a future that resolves to the final result (even after one or more layer of futures being
Expand All @@ -977,7 +977,7 @@ def _schedule_rpc(self, callback: Callable[..., Any], *args: Any, **kwargs: Any)
:return: a kiwi future that resolves to the outcome of the callback
"""
kiwi_future = kiwipy.Future()
kiwi_future = concurrent.futures.Future()

async def run_callback() -> None:
with capture_exceptions(kiwi_future):
Expand Down

0 comments on commit 0190e9b

Please sign in to comment.