@daiso-tech/core 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/async/utilities/lazy-promise/lazy-promise.d.ts +12 -3
  2. package/dist/async/utilities/lazy-promise/lazy-promise.js +36 -3
  3. package/dist/async/utilities/lazy-promise/lazy-promise.js.map +1 -1
  4. package/dist/cache/implementations/derivables/cache/cache.d.ts +24 -24
  5. package/dist/cache/implementations/derivables/cache/cache.js +15 -15
  6. package/dist/cache/implementations/derivables/cache/cache.js.map +1 -1
  7. package/dist/event-bus/contracts/_shared.d.ts +0 -7
  8. package/dist/event-bus/contracts/_shared.js.map +1 -1
  9. package/dist/event-bus/contracts/event-bus-adapter.contract.d.ts +6 -5
  10. package/dist/event-bus/contracts/event-bus.contract.d.ts +8 -23
  11. package/dist/event-bus/contracts/event-bus.contract.js +0 -1
  12. package/dist/event-bus/contracts/event-bus.contract.js.map +1 -1
  13. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.d.ts +4 -3
  14. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js +1 -1
  15. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js.map +1 -1
  16. package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.d.ts +4 -3
  17. package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js.map +1 -1
  18. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.d.ts +4 -3
  19. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js +1 -1
  20. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js.map +1 -1
  21. package/dist/event-bus/implementations/derivables/event-bus/event-bus.d.ts +13 -13
  22. package/dist/event-bus/implementations/derivables/event-bus/event-bus.js +5 -5
  23. package/dist/event-bus/implementations/derivables/event-bus/event-bus.js.map +1 -1
  24. package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js +30 -30
  25. package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js.map +1 -1
  26. package/dist/lock/implementations/derivables/lock-provider/lock-provider.d.ts +23 -23
  27. package/dist/lock/implementations/derivables/lock-provider/lock-provider.js +14 -14
  28. package/dist/lock/implementations/derivables/lock-provider/lock-provider.js.map +1 -1
  29. package/dist/lock/implementations/derivables/lock-provider/lock.d.ts +32 -32
  30. package/dist/lock/implementations/derivables/lock-provider/lock.js +23 -23
  31. package/dist/lock/implementations/derivables/lock-provider/lock.js.map +1 -1
  32. package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js +30 -30
  33. package/dist/utilities/{constants.js → _constants.js} +1 -1
  34. package/dist/utilities/_constants.js.map +1 -0
  35. package/dist/utilities/_module-exports.d.ts +1 -1
  36. package/dist/utilities/_module-exports.js +1 -1
  37. package/dist/utilities/_module-exports.js.map +1 -1
  38. package/dist/utilities/pipeline/_module.d.ts +1 -0
  39. package/dist/utilities/pipeline/_module.js +2 -0
  40. package/dist/utilities/pipeline/_module.js.map +1 -0
  41. package/dist/utilities/pipeline/pipeline.d.ts +45 -0
  42. package/dist/utilities/pipeline/pipeline.js +75 -0
  43. package/dist/utilities/pipeline/pipeline.js.map +1 -0
  44. package/dist/utilities/time-span/time-span.d.ts +3 -12
  45. package/dist/utilities/time-span/time-span.js +3 -6
  46. package/dist/utilities/time-span/time-span.js.map +1 -1
  47. package/dist/utilities/types.d.ts +19 -2
  48. package/package.json +1 -1
  49. package/dist/utilities/constants.js.map +0 -1
  50. /package/dist/utilities/{constants.d.ts → _constants.d.ts} +0 -0
@@ -137,7 +137,7 @@ export class LockProvider {
137
137
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
138
138
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
139
139
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
140
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
140
+ * import type { Invokable} from "@daiso-tech/core/event-bus/contracts";
141
141
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
142
142
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
143
143
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -155,7 +155,7 @@ export class LockProvider {
155
155
  * eventBus,
156
156
  * });
157
157
  *
158
- * const listener: EventListener<LockEvents> = event => {
158
+ * const listener: Invokable<LockEvents> = event => {
159
159
  * console.log(event);
160
160
  * }
161
161
  * await lockProvider.addListener(KeyAcquiredLockEvent, listener);
@@ -176,7 +176,7 @@ export class LockProvider {
176
176
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
177
177
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
178
178
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
179
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
179
+ * import type { Invokable} from "@daiso-tech/core/event-bus/contracts";
180
180
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
181
181
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
182
182
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -194,7 +194,7 @@ export class LockProvider {
194
194
  * eventBus,
195
195
  * });
196
196
  *
197
- * const listener: EventListener<LockEvents> = event => {
197
+ * const listener: Invokable<LockEvents> = event => {
198
198
  * console.log(event);
199
199
  * }
200
200
  * await lockProvider.addListenerMany([KeyAcquiredLockEvent], listener);
@@ -215,7 +215,7 @@ export class LockProvider {
215
215
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
216
216
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
217
217
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
218
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
218
+ * import type { Invokable} from "@daiso-tech/core/event-bus/contracts";
219
219
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
220
220
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
221
221
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -233,7 +233,7 @@ export class LockProvider {
233
233
  * eventBus,
234
234
  * });
235
235
  *
236
- * const listener: EventListener<LockEvents> = event => {
236
+ * const listener: Invokable<LockEvents> = event => {
237
237
  * console.log(event);
238
238
  * }
239
239
  * await lockProvider.addListener(KeyAcquiredLockEvent, listener);
@@ -254,7 +254,7 @@ export class LockProvider {
254
254
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
255
255
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
256
256
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
257
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
257
+ * import type { Invokable} from "@daiso-tech/core/event-bus/contracts";
258
258
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
259
259
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
260
260
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -272,7 +272,7 @@ export class LockProvider {
272
272
  * eventBus,
273
273
  * });
274
274
  *
275
- * const listener: EventListener<LockEvents> = event => {
275
+ * const listener: Invokable<LockEvents> = event => {
276
276
  * console.log(event);
277
277
  * }
278
278
  * await lockProvider.addListenerMany(KeyAcquiredLockEvent, listener);
@@ -293,7 +293,7 @@ export class LockProvider {
293
293
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
294
294
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
295
295
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
296
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
296
+ * import type { Invokable} from "@daiso-tech/core/event-bus/contracts";
297
297
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
298
298
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
299
299
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -311,7 +311,7 @@ export class LockProvider {
311
311
  * eventBus,
312
312
  * });
313
313
  *
314
- * const listener: EventListener<LockEvents> = event => {
314
+ * const listener: Invokable<LockEvents> = event => {
315
315
  * console.log(event);
316
316
  * }
317
317
  * await lockProvider.listenOnce(KeyAcquiredLockEvent, listener);
@@ -334,7 +334,7 @@ export class LockProvider {
334
334
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
335
335
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
336
336
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
337
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
337
+ * import type { Invokable} from "@daiso-tech/core/event-bus/contracts";
338
338
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
339
339
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
340
340
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -352,7 +352,7 @@ export class LockProvider {
352
352
  * eventBus,
353
353
  * });
354
354
  *
355
- * const listener: EventListener<LockEvents> = event => {
355
+ * const listener: Invokable<LockEvents> = event => {
356
356
  * console.log(event);
357
357
  * }
358
358
  * const unsubscribe = await lockProvider.subscribe(KeyAcquiredLockEvent, listener);
@@ -373,7 +373,7 @@ export class LockProvider {
373
373
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
374
374
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
375
375
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
376
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
376
+ * import type { Invokable} from "@daiso-tech/core/event-bus/contracts";
377
377
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
378
378
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
379
379
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -391,7 +391,7 @@ export class LockProvider {
391
391
  * eventBus,
392
392
  * });
393
393
  *
394
- * const listener: EventListener<LockEvents> = event => {
394
+ * const listener: Invokable<LockEvents> = event => {
395
395
  * console.log(event);
396
396
  * }
397
397
  * const unsubscribe = await lockProvider.subscribeMany([KeyAcquiredLockEvent], listener);
@@ -1 +1 @@
1
- {"version":3,"file":"lock-provider.js","sourceRoot":"","sources":["../../../../../src/lock/implementations/derivables/lock-provider/lock-provider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACH,IAAI,EACJ,mBAAmB,EACnB,QAAQ,GAEX,MAAM,gCAAgC,CAAC;AAKxC,OAAO,EAMN,MAAM,qCAAqC,CAAC;AAM7C,OAAO,EAAE,IAAI,EAAE,MAAM,yDAAyD,CAAC;AAW/E,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0EAA0E,CAAC;AAE/G,OAAO,EAAE,oBAAoB,EAAE,MAAM,2EAA2E,CAAC;AAyFjH;;;;;;;;;GASG;AACH,MAAM,OAAO,YAAY;IACb,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC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AC;YAC3D,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;YAC3C,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;SACpB,CAAC,CAAC;IACP,CAAC"}
1
+ {"version":3,"file":"lock-provider.js","sourceRoot":"","sources":["../../../../../src/lock/implementations/derivables/lock-provider/lock-provider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACH,IAAI,EACJ,mBAAmB,EACnB,QAAQ,GAGX,MAAM,gCAAgC,CAAC;AAKxC,OAAO,EAMN,MAAM,qCAAqC,CAAC;AAM7C,OAAO,EAAE,IAAI,EAAE,MAAM,yDAAyD,CAAC;AAU/E,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0EAA0E,CAAC;AAE/G,OAAO,EAAE,oBAAoB,EAAE,MAAM,2EAA2E,CAAC;AAyFjH;;;;;;;;;GASG;AACH,MAAM,OAAO,YAAY;IACb,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAC7C,MAAM,CAAC,oBAAoB,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAEtD,MAAM,CAAC,iBAAiB,CAC5B,OAA4C;QAE5C,MAAM,QAAQ,GAAG,OAEhB,CAAC;QACF,OAAO,CACH,OAAO,QAAQ,CAAC,MAAM,CAAC,KAAK,UAAU;YACtC,QAAQ,CAAC,M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AAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;SACpB,CAAC,CAAC;IACP,CAAC"}
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @module Lock
3
3
  */
4
- import type { LazyPromiseable, Result } from "../../../../utilities/_module-exports.js";
4
+ import type { Invokable, LazyPromiseable, Result } from "../../../../utilities/_module-exports.js";
5
5
  import type { TimeSpan } from "../../../../utilities/_module-exports.js";
6
6
  import type { BackoffPolicy, RetryPolicy } from "../../../../async/_module-exports.js";
7
7
  import { LazyPromise } from "../../../../async/_module-exports.js";
8
8
  import type { AquireBlockingSettings, ILockAdapter, LockEvents } from "../../../../lock/contracts/_module-exports.js";
9
9
  import { KeyAlreadyAcquiredLockError, type ILock } from "../../../../lock/contracts/_module-exports.js";
10
- import type { EventClass, EventListener, EventInstance, Unsubscribe, IGroupableEventBus, IEventDispatcher } from "../../../../event-bus/contracts/_module-exports.js";
10
+ import type { EventClass, EventInstance, Unsubscribe, IGroupableEventBus, IEventDispatcher } from "../../../../event-bus/contracts/_module-exports.js";
11
11
  import { type ILockStateRecord } from "../../../../lock/implementations/derivables/lock-provider/lock-state.js";
12
12
  /**
13
13
  * @internal
@@ -72,7 +72,7 @@ export declare class Lock implements ILock {
72
72
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
73
73
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
74
74
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
75
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
75
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
76
76
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
77
77
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
78
78
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -117,7 +117,7 @@ export declare class Lock implements ILock {
117
117
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
118
118
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
119
119
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
120
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
120
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
121
121
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
122
122
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
123
123
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -171,7 +171,7 @@ export declare class Lock implements ILock {
171
171
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
172
172
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
173
173
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
174
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
174
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
175
175
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
176
176
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
177
177
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -218,7 +218,7 @@ export declare class Lock implements ILock {
218
218
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
219
219
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
220
220
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
221
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
221
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
222
222
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
223
223
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
224
224
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -275,7 +275,7 @@ export declare class Lock implements ILock {
275
275
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
276
276
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
277
277
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
278
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
278
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
279
279
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
280
280
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
281
281
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -320,7 +320,7 @@ export declare class Lock implements ILock {
320
320
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
321
321
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
322
322
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
323
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
323
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
324
324
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
325
325
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
326
326
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -374,7 +374,7 @@ export declare class Lock implements ILock {
374
374
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
375
375
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
376
376
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
377
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
377
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
378
378
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
379
379
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
380
380
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -428,7 +428,7 @@ export declare class Lock implements ILock {
428
428
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
429
429
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
430
430
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
431
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
431
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
432
432
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
433
433
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
434
434
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -480,7 +480,7 @@ export declare class Lock implements ILock {
480
480
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
481
481
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
482
482
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
483
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
483
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
484
484
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
485
485
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
486
486
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -547,7 +547,7 @@ export declare class Lock implements ILock {
547
547
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
548
548
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
549
549
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
550
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
550
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
551
551
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
552
552
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
553
553
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -567,14 +567,14 @@ export declare class Lock implements ILock {
567
567
  *
568
568
  * const lock = lockProvider.create("a");
569
569
  *
570
- * const listener: EventListener<LockEvents> = event => {
570
+ * const listener: Invokable <LockEvents> = event => {
571
571
  * console.log(event);
572
572
  * }
573
573
  * await lock.addListener(KeyAcquiredLockEvent, listener);
574
574
  * await lock.acquire();
575
575
  * ```
576
576
  */
577
- addListener<TEventClass extends EventClass<LockEvents>>(event: TEventClass, listener: EventListener<EventInstance<TEventClass>>): LazyPromise<void>;
577
+ addListener<TEventClass extends EventClass<LockEvents>>(event: TEventClass, listener: Invokable<EventInstance<TEventClass>>): LazyPromise<void>;
578
578
  /**
579
579
  * You can listen to different events of the current <i>Lock</i> class instance.
580
580
  *
@@ -585,7 +585,7 @@ export declare class Lock implements ILock {
585
585
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
586
586
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
587
587
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
588
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
588
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
589
589
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
590
590
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
591
591
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -605,14 +605,14 @@ export declare class Lock implements ILock {
605
605
  *
606
606
  * const lock = lockProvider.create("a");
607
607
  *
608
- * const listener: EventListener<LockEvents> = event => {
608
+ * const listener: Invokable <LockEvents> = event => {
609
609
  * console.log(event);
610
610
  * }
611
611
  * await lock.addListenerMany([KeyAcquiredLockEvent], listener);
612
612
  * await lock.acquire();
613
613
  * ```
614
614
  */
615
- addListenerMany<TEventClass extends EventClass<LockEvents>>(events: TEventClass[], listener: EventListener<EventInstance<TEventClass>>): LazyPromise<void>;
615
+ addListenerMany<TEventClass extends EventClass<LockEvents>>(events: TEventClass[], listener: Invokable<EventInstance<TEventClass>>): LazyPromise<void>;
616
616
  /**
617
617
  * You can listen to different events of the current <i>Lock</i> class instance.
618
618
  *
@@ -623,7 +623,7 @@ export declare class Lock implements ILock {
623
623
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
624
624
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
625
625
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
626
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
626
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
627
627
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
628
628
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
629
629
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -643,7 +643,7 @@ export declare class Lock implements ILock {
643
643
  *
644
644
  * const lock = lockProvider.create("a");
645
645
  *
646
- * const listener: EventListener<LockEvents> = event => {
646
+ * const listener: Invokable <LockEvents> = event => {
647
647
  * console.log(event);
648
648
  * }
649
649
  * await lock.addListener(KeyAcquiredLockEvent, listener);
@@ -651,7 +651,7 @@ export declare class Lock implements ILock {
651
651
  * await lock.acquire();
652
652
  * ```
653
653
  */
654
- removeListener<TEventClass extends EventClass<LockEvents>>(event: TEventClass, listener: EventListener<EventInstance<TEventClass>>): LazyPromise<void>;
654
+ removeListener<TEventClass extends EventClass<LockEvents>>(event: TEventClass, listener: Invokable<EventInstance<TEventClass>>): LazyPromise<void>;
655
655
  /**
656
656
  * You can listen to different events of the current <i>Lock</i> class instance.
657
657
  *
@@ -662,7 +662,7 @@ export declare class Lock implements ILock {
662
662
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
663
663
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
664
664
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
665
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
665
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
666
666
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
667
667
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
668
668
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -682,7 +682,7 @@ export declare class Lock implements ILock {
682
682
  *
683
683
  * const lock = lockProvider.create("a");
684
684
  *
685
- * const listener: EventListener<LockEvents> = event => {
685
+ * const listener: Invokable <LockEvents> = event => {
686
686
  * console.log(event);
687
687
  * }
688
688
  * await lock.addListenerMany([KeyAcquiredLockEvent], listener);
@@ -690,7 +690,7 @@ export declare class Lock implements ILock {
690
690
  * await lock.acquire();
691
691
  * ```
692
692
  */
693
- removeListenerMany<TEventClass extends EventClass<LockEvents>>(events: TEventClass[], listener: EventListener<EventInstance<TEventClass>>): LazyPromise<void>;
693
+ removeListenerMany<TEventClass extends EventClass<LockEvents>>(events: TEventClass[], listener: Invokable<EventInstance<TEventClass>>): LazyPromise<void>;
694
694
  /**
695
695
  * You can listen to different events of the current <i>Lock</i> class instance.
696
696
  *
@@ -701,7 +701,7 @@ export declare class Lock implements ILock {
701
701
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
702
702
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
703
703
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
704
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
704
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
705
705
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
706
706
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
707
707
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -721,14 +721,14 @@ export declare class Lock implements ILock {
721
721
  *
722
722
  * const lock = lockProvider.create("a");
723
723
  *
724
- * const listener: EventListener<LockEvents> = event => {
724
+ * const listener: Invokable <LockEvents> = event => {
725
725
  * console.log(event);
726
726
  * }
727
727
  * await lock.listenOnce(KeyAcquiredLockEvent, listener);
728
728
  * await lock.acquire();
729
729
  * ```
730
730
  */
731
- listenOnce<TEventClass extends EventClass<LockEvents>>(event: TEventClass, listener: EventListener<EventInstance<TEventClass>>): LazyPromise<void>;
731
+ listenOnce<TEventClass extends EventClass<LockEvents>>(event: TEventClass, listener: Invokable<EventInstance<TEventClass>>): LazyPromise<void>;
732
732
  asPromise<TEventClass extends EventClass<LockEvents>>(event: TEventClass): LazyPromise<EventInstance<TEventClass>>;
733
733
  /**
734
734
  * You can listen to different events of the current <i>Lock</i> class instance.
@@ -740,7 +740,7 @@ export declare class Lock implements ILock {
740
740
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
741
741
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
742
742
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
743
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
743
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
744
744
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
745
745
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
746
746
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -760,7 +760,7 @@ export declare class Lock implements ILock {
760
760
  *
761
761
  * const lock = lockProvider.create("a");
762
762
  *
763
- * const listener: EventListener<LockEvents> = event => {
763
+ * const listener: Invokable <LockEvents> = event => {
764
764
  * console.log(event);
765
765
  * }
766
766
  * const unsubscribe = await lock.subscribe(KeyAcquiredLockEvent, listener);
@@ -768,7 +768,7 @@ export declare class Lock implements ILock {
768
768
  * await unsubscribe();
769
769
  * ```
770
770
  */
771
- subscribe<TEventClass extends EventClass<LockEvents>>(event: TEventClass, listener: EventListener<EventInstance<TEventClass>>): LazyPromise<Unsubscribe>;
771
+ subscribe<TEventClass extends EventClass<LockEvents>>(event: TEventClass, listener: Invokable<EventInstance<TEventClass>>): LazyPromise<Unsubscribe>;
772
772
  /**
773
773
  * You can listen to different events of the current <i>Lock</i> class instance.
774
774
  *
@@ -779,7 +779,7 @@ export declare class Lock implements ILock {
779
779
  * import { type IGroupableLockProvider, type LockEvents, KeyAcquiredLockEvent } from "@daiso-tech/core/lock/contracts";
780
780
  * import { LockProvider } from "@daiso-tech/core/lock/implementations/derivables";
781
781
  * import { MemoryLockAdapter } from "@daiso-tech/core/lock/implementations/adapters";
782
- * import type { EventListener} from "@daiso-tech/core/event-bus/contracts";
782
+ * import type { Invokable } from "@daiso-tech/core/event-bus/contracts";
783
783
  * import { EventBus } from "@daiso-tech/core/event-bus/implementations/derivables";
784
784
  * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/implementations/adapters";
785
785
  * import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
@@ -799,7 +799,7 @@ export declare class Lock implements ILock {
799
799
  *
800
800
  * const lock = lockProvider.create("a");
801
801
  *
802
- * const listener: EventListener<LockEvents> = event => {
802
+ * const listener: Invokable <LockEvents> = event => {
803
803
  * console.log(event);
804
804
  * }
805
805
  * const unsubscribe = await lock.subscribeMany([KeyAcquiredLockEvent], listener);
@@ -807,5 +807,5 @@ export declare class Lock implements ILock {
807
807
  * await unsubscribe();
808
808
  * ```
809
809
  */
810
- subscribeMany<TEventClass extends EventClass<LockEvents>>(events: TEventClass[], listener: EventListener<EventInstance<TEventClass>>): LazyPromise<Unsubscribe>;
810
+ subscribeMany<TEventClass extends EventClass<LockEvents>>(events: TEventClass[], listener: Invokable<EventInstance<TEventClass>>): LazyPromise<Unsubscribe>;
811
811
  }