Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>asynquence CSP: Ping Pong</title>
</head>
<body>
<h1><em>asynquence</em> CSP: Ping Pong</h1>
<div id="table">
    <div id="ping"></div>
    <div id="net"></div>
    <div id="pong"></div>
    <div id="referee"></div>
</div>
<p>
  Built with <a href="https://github.com/getify/asynquence">asynquence</a> and the <a href="https://github.com/getify/asynquence/tree/master/contrib#runner-plugin">runner(..)</a> plugin, for <a href="https://github.com/getify/asynquence/tree/master/contrib#csp-style-concurrency">CSP-style concurrency</a>.
</p>
<p>
  Inspired by (ported from): <a href="https://github.com/ubolonton/js-csp/blob/master/README.md#examples">js-csp</a> and the <a href="http://talks.golang.org/2013/advconc.slide#6">go ping-pong</a> example.
</p>
  <script src="http://rawnpm.getify.io/asynquence/latest/asq.js"></script>
<script src="http://rawnpm.getify.io/asynquence-contrib/latest/contrib.js"></script>
</body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
getifypro
0viewers