You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* globals $ *//* eslint-env node, dirigible */varthreads=require('core/threads');varresponse=require('net/http/response');response.setContentType("text/plain; charset=UTF-8");// Define a JavaScript functionfunctionrunnable(){response.println("Hello World from a Thread!");};// Pass a JavaScript functionvarworker=threads.create(runnable,"I am a thread");response.println(worker.getName());worker.start();worker.join();// to be able to print to the responseresponse.flush();response.close();
API for 'threads' - threads management
The text was updated successfully, but these errors were encountered: