diff options
author | David Lord <davidism@gmail.com> | 2022-07-17 06:01:22 -0700 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2022-07-17 06:01:22 -0700 |
commit | 97b70b53012a75e3c568bba644c259416502de74 (patch) | |
tree | 4ad0873875698b9ec061dc9e0f453a822886727d /docs | |
parent | 7167d5dddb7afdc30ce29bb481c4e2209a1e0f06 (diff) | |
download | blinker-97b70b53012a75e3c568bba644c259416502de74.tar.gz |
Revert "Merge pull request #18 from jek/feature/send-async"
This reverts commit b5e9f0629200d2b2f62e13e595b802948bb4fefb, reversing
changes made to 904d8d3803e84257c08526e9047474215aa1c976.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/source/index.rst | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/docs/source/index.rst b/docs/source/index.rst index 521e7c5..bdb40ef 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -14,7 +14,6 @@ The core of Blinker is quite small but provides powerful features: - sending arbitrary data payloads - collecting return values from signal receivers - thread safety - - coroutines as signal receivers Blinker was written by Jason Kirtand and is provided under the MIT License. The library supports Python 2.7 and Python 3.5 or later; @@ -95,35 +94,6 @@ notifications being sent, and these no-op sends are optimized to be as inexpensive as possible. -Async support -------------- - -Send a signal asynchronously to coroutine receivers. - - >>> async def receiver_a(sender): - ... return 'value a' - ... - >>> async def receiver_b(sender): - ... return 'value b' - ... - >>> ready = signal('ready') - >>> ready.connect(receiver_a) - >>> ready.connect(receiver_b) - ... - >>> async def collect(): - ... return ready.send_async('sender') - ... - >>> loop = asyncio.get_event_loop() - >>> results = loop.run_until_complete(collect()) - >>> len(results) - 2 - >>> [v.result() for r, v in results][0] - value a - -Dispatching to an arbitrary mix of connected -coroutines and receiver functions is supported. - - Subscribing to Specific Senders ------------------------------- |