Interface for objects that can be resolved asynchronously.
Provides a standard resolution mechanism for troubles and other resolvable conditions in the KOS system. Resolution typically involves sending a command to clear the condition.
class ResolvableTrouble implements ResolveAware { async resolve(tracker?: string) { console.log(`Resolving with tracker: ${tracker}`); const response = await sendResolveCommand(this.id, tracker); return response; }} Copy
class ResolvableTrouble implements ResolveAware { async resolve(tracker?: string) { console.log(`Resolving with tracker: ${tracker}`); const response = await sendResolveCommand(this.id, tracker); return response; }}
Resolves the condition asynchronously.
Optional
Optional tracking identifier for the resolution operation
Promise resolving to the future response, or undefined if resolution fails
Interface for objects that can be resolved asynchronously.
Provides a standard resolution mechanism for troubles and other resolvable conditions in the KOS system. Resolution typically involves sending a command to clear the condition.
Example