Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for event (0.12 sec)

  1. misc/wasm/wasm_exec.js

    			if (this.exited) {
    				this._resolveExitPromise();
    			}
    		}
    
    		_makeFuncWrapper(id) {
    			const go = this;
    			return function () {
    				const event = { id: id, this: this, args: arguments };
    				go._pendingEvent = event;
    				go._resume();
    				return event.result;
    			};
    		}
    	}
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  2. misc/wasm/wasm_exec_node.js

    go.exit = process.exit;
    WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
    	process.on("exit", (code) => { // Node.js exits if no event handler is pending
    		if (code === 0 && !go.exited) {
    			// deadlock, make Go print error and stack traces
    			go._pendingEvent = { id: 0 };
    			go._resume();
    		}
    	});
    	return go.run(result.instance);
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jan 30 18:49:42 GMT 2023
    - 1.1K bytes
    - Viewed (0)
Back to top