(handlers)
| 376 | } |
| 377 | |
| 378 | unsubscribe(handlers) { |
| 379 | let done = true; |
| 380 | |
| 381 | for (let i = 0; i < boundedEvents.length; ++i) { |
| 382 | const name = boundedEvents[i]; |
| 383 | if (!handlers[name]) continue; |
| 384 | |
| 385 | if (!this[name]?.unsubscribe(handlers[name])) { |
| 386 | done = false; |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | return done; |
| 391 | } |
| 392 | |
| 393 | withScope(context = kEmptyObject) { |
| 394 | return new BoundedChannelScope(this, context); |
nothing calls this directly
no test coverage detected