WORKER_STATUS

Import

import { WORKER_STATUS } from "@koale/useworker";

API

WORKER_STATUSTypeDescription
PENDINGstringthe web worker has been initialized, but has not yet been executed
SUCCESSstringthe web worker, has been executed correctly
RUNNINGstringthe web worker, is running
ERRORstringthe web worker, ended with an error
TIMEOUT_EXPIREDstringThe web worker was killed because the defined timeout expired.