Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add an initial set of type hints | pgjones | 2023-04-02 | 1 | -1/+0 |
| | | | | | | | These focus on the public API with the private aspect omitted. This is because these are hard to type, and may not be required with modern python. However, this should still be useful if adopted for code that uses blinker. | ||||
* | Add a send_async method to the Signal | pgjones | 2023-01-24 | 1 | -0/+27 |
| | | | | | | | | | | This allows for signals to send to coroutine receivers by awaiting them. The _async_wrapper and _sync_wrapper allows for conversion of sync and async receivers as required if defined. If not defined a runtime error is raised. The wrappers are used to avoid any direct tie into asyncio, trio, greenbacks, asgiref, or other specific async implementation. | ||||
* | Allow int senders | pgjones | 2023-01-24 | 1 | -0/+15 |
| | | | | | This allows int values as senders much in the same way string values are allowed. | ||||
* | Added `muted` context manager for temproary switching signal off (#84) | Phil Jones | 2023-01-24 | 1 | -0/+17 |
| | | | | | This is useful whilst testing to remove a signal's affects. Co-authored-by: Michael Elovskikh <wronglink@yandex-team.ru> | ||||
* | Fix issues reported by flake8 | Bartek Sokorski | 2023-01-22 | 1 | -11/+15 |
| | |||||
* | Apply styling changes to tests | Bartek Sokorski | 2023-01-22 | 1 | -73/+98 |
| | |||||
* | Revert "Merge pull request #18 from jek/feature/send-async" | David Lord | 2022-07-17 | 1 | -5/+0 |
| | | | | | This reverts commit b5e9f0629200d2b2f62e13e595b802948bb4fefb, reversing changes made to 904d8d3803e84257c08526e9047474215aa1c976. | ||||
* | Merge pull request #60 from pgajdos/master | David Lord | 2022-07-17 | 1 | -2/+2 |
|\ | | | | | use pytest instead of deprecated nose | ||||
| * | use pytest instead of deprecated nose | pgajdos | 2020-07-08 | 1 | -2/+2 |
| | | |||||
* | | Merge branch 'master' into feature/send-async | Youri Ackx | 2020-10-02 | 1 | -14/+7 |
|\ \ | |/ | | | | | | | # Conflicts: # CHANGES | ||||
| * | Unnecessary dict call - rewrite as a literal | hugovk | 2018-03-21 | 1 | -7/+7 |
| | | |||||
| * | Drop support for EOL Python | hugovk | 2018-03-20 | 1 | -7/+0 |
| | | |||||
* | | Adds Signal.send_async for asyncio | jason kirtland | 2015-07-24 | 1 | -0/+5 |
|/ | |||||
* | Added Signal._cleanup_bookeeping() to prune stale bookkeeping on demand. | jason kirtland | 2015-07-23 | 1 | -0/+4 |
| | |||||
* | Additional bookkeeping cleanup for non-ANY connections at disconnect time. | jason kirtland | 2015-07-23 | 1 | -0/+32 |
| | |||||
* | blinker.signal() and blinker.Namespace no longer use weak references. | jason kirtland | 2013-07-03 | 1 | -2/+17 |
| | | | | | | | | | | | | In the original implementation, I was uneasy about releasing a library that held an unbounded, module-level cache, so it was built using a weak value mapping. In practice, users making tons of signals are using Signal() directly, and the weak referencing violates the principle of least surprise in code like `signal('foo').connect(...)`. Previous code is available as WeakNamespace for the time being. The implementation is trivial and will likely be dropped in the future unless use cases are voiced. | ||||
* | Upgrade temporarily_connected_to to a deprecation warning. | jason kirtland | 2011-10-26 | 1 | -1/+1 |
| | |||||
* | Update test suite to pass under pypy1.5 (gc collection for refs) | jason kirtland | 2011-05-01 | 1 | -12/+15 |
| | |||||
* | Added Signal.receiver_connected and .receiver_disconnected per-Signal signals. | jason kirtland | 2011-03-14 | 1 | -0/+139 |
| | | | | Deprecates the global 'receiver_connected' signal. | ||||
* | Added Signal.connect_via() decorator. | jason kirtland | 2010-07-21 | 1 | -0/+26 |
| | |||||
* | Added note about Jython compiler workaround in weakref test. | jason kirtland | 2010-03-29 | 1 | -3/+7 |
| | |||||
* | Woot, 1.0 works on Jython too. | jason kirtland | 2010-03-28 | 1 | -2/+31 |
| | |||||
* | Added ``Signal.temporarily_connected_to`` context manager | jason kirtland | 2010-02-14 | 1 | -0/+8 |
| | |||||
* | Initial import from flatland.util.signals | jason kirtland | 2010-02-14 | 1 | -0/+235 |