DocsRuntimeinfrastructureSemaphoreTimeoutError
Package: @hexos/runtime

Error thrown when a Semaphore acquire operation times out while waiting in the queue.

Contains a code field (default: 'SEMAPHORE_QUEUE_TIMEOUT') for programmatic error handling. In the context of AgentRuntime, this maps to the TOOL_QUEUE_TIMEOUT error code when a tool cannot acquire a concurrency slot within toolExecutionQueueTimeoutMs.

class SemaphoreTimeoutError extends Error {
    readonly code: string;
    constructor(message: string, code:  = 'SEMAPHORE_QUEUE_TIMEOUT')
}
  • Extends: Error

code

string

constructor

(message: string, code: = 'SEMAPHORE_QUEUE_TIMEOUT') => SemaphoreTimeoutError