Skip to main content

Decorators (core)

@Worker

import { Worker } from '@hexajs-dev/core';
@Worker(options: WorkerOptions)

Types & Interfaces

WorkerOptions

import { WorkerOptions } from '@hexajs-dev/core';
interface WorkerOptions {
name: string;
environment?: WorkerEnvironment;
}

Enums

WorkerEnvironment

import { WorkerEnvironment } from '@hexajs-dev/core';
enum WorkerEnvironment {
Compute = 'compute',
DOM = 'dom'
}