This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// node.js worker_threads module example with for-await loop: main thread side | |
//$ node --exprimental-worker main.js | |
const path = require("path"); | |
const {Worker, MessageChannel} = require("worker_threads"); | |
// async queue as "asyncIterator" in ES2018 | |
class Queue { | |
constructor() { | |
this.polls = []; | |
this.gets = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use: for testing against email regex | |
ref: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses | |
List of Valid Email Addresses | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] |