See logic-vars-as-promise-likes
for implementation of Oz-style logic variables
using promise-like objects in JavaScript
See threads-as-async-functions
for implementation of time-slicing using
JavaScript asynchronous functions
See threads-as-async-generators
for implementation of threads using JavaScript
generator functions