Creates a pair of connected MessagePort objects.

Also available via worker_threads (see section 5); this is the web global form.

See also:

Constructor

new()

Variables

read onlyport1:MessagePort

A MessagePort for receiving/sending messages.

read onlyport2:MessagePort

The other end of the channel.