worker-loader icon indicating copy to clipboard operation
worker-loader copied to clipboard

why 'ctx.terminate' is not wokring

Open cielyic opened this issue 2 years ago • 0 comments

// my.worker.js
const ctx: Worker = self as any;

ctx.terminate(); // not a function

but

// my.worker.js
const ctx: Worker = self as any;

ctx.close(); // works , but type is wrong

cielyic avatar Jul 27 '21 10:07 cielyic