(cacheKey: string | any[], id: string)
| 780 | } |
| 781 | |
| 782 | async getEvent(cacheKey: string | any[], id: string) { |
| 783 | return await this.runTask( |
| 784 | cacheKey, |
| 785 | async (task) => { |
| 786 | return await this._triggerClient.getEvent(id); |
| 787 | }, |
| 788 | { |
| 789 | name: "getEvent", |
| 790 | params: { id }, |
| 791 | properties: [ |
| 792 | { |
| 793 | label: "id", |
| 794 | text: id, |
| 795 | }, |
| 796 | ], |
| 797 | } |
| 798 | ); |
| 799 | } |
| 800 | |
| 801 | /** `io.cancelEvent()` allows you to cancel an event that was previously sent with `io.sendEvent()`. This will prevent any Jobs from running that are listening for that event if the event was sent with a delay |
| 802 | * @param cacheKey |
no test coverage detected