UNPKG

web-threads

Version:

generic threads using web workers for the web

11 lines (9 loc) 191 B
import { execute } from '../lib/web-threads' let func = (value) => { return value * value } let params = { fn: func.toString(), args: [2] } export default () => execute(params)