| 1 | module executor |
| 2 | |
| 3 | // Error strings are centralized because they are part of the public contract. |
| 4 | // Keep them stable, short, and explicitly scoped to x.executor. |
| 5 | const err_drain_limit_invalid = 'executor: drain limit must be positive' |
| 6 | const err_executor_closed = 'executor: executor is closed' |
| 7 | const err_executor_stopped = 'executor: executor is stopped' |
| 8 | const err_nil_job = 'executor: job function is nil' |
| 9 | const err_not_owner_thread = 'executor: current thread is not the executor owner' |
| 10 | const err_owner_pump_running = 'executor: owner pump is already running' |
| 11 | const err_owner_submit_wait = 'executor: owner thread cannot wait for queue capacity' |
| 12 | const err_queue_full = 'executor: queue is full' |
| 13 | const err_queue_size_invalid = 'executor: queue size must be positive' |
| 14 | const err_timeout = 'executor: timeout' |
| 15 | const err_wait_before_terminal = 'executor: wait requires a running pump or stopped executor' |
| 16 | const err_wait_called = 'executor: wait was already called' |
| 17 | const err_wait_owner_thread = 'executor: wait cannot be called from executor owner thread' |
| 18 | |