-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove kiwipy/rmq dependencies of process module
- Loading branch information
Showing
5 changed files
with
18 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
from typing import Any, Callable, Protocol | ||
from typing import Any, Callable, Pattern, Protocol | ||
|
||
RpcSubscriber = Callable[['Communicator', Any], Any] | ||
BroadcastSubscriber = Callable[['Communicator', Any, Any, Any, Any], Any] | ||
|
||
class Communicator(Protocol): | ||
|
||
def add_rpc_subscriber(self, subscriber: RpcSubscriber, identifier=None) -> Any: | ||
... | ||
class Communicator(Protocol): | ||
def add_rpc_subscriber(self, subscriber: RpcSubscriber, identifier=None) -> Any: ... | ||
|
||
def add_broadcast_subscriber(self, subscriber: BroadcastSubscriber, identifier=None) -> Any: | ||
... | ||
def add_broadcast_subscriber( | ||
self, subscriber: BroadcastSubscriber, subject_filter: str | Pattern[str] | None = None, identifier=None | ||
) -> Any: ... | ||
|
||
def remove_rpc_subscriber(self, identifier): | ||
... | ||
def remove_rpc_subscriber(self, identifier): ... | ||
|
||
def remove_broadcast_subscriber(self, identifier): | ||
... | ||
def remove_broadcast_subscriber(self, identifier): ... | ||
|
||
def broadcast_send(self, body, sender=None, subject=None, correlation_id=None) -> bool: | ||
... | ||
def broadcast_send(self, body, sender=None, subject=None, correlation_id=None) -> bool: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters