Method
with_dispatch_target
(self, dispatch_target: Any)
Source from the content-addressed store, hash-verified
| 271 | ) |
| 272 | |
| 273 | def with_dispatch_target(self, dispatch_target: Any) -> _EventKey[_ET]: |
| 274 | if dispatch_target is self.dispatch_target: |
| 275 | return self |
| 276 | else: |
| 277 | return _EventKey( |
| 278 | self.target, |
| 279 | self.identifier, |
| 280 | self.fn, |
| 281 | dispatch_target, |
| 282 | _fn_wrap=self.fn_wrap, |
| 283 | ) |
| 284 | |
| 285 | def listen(self, *args: Any, **kw: Any) -> None: |
| 286 | once = kw.pop("once", False) |
Tested by
no test coverage detected