UNPKG

state-trooper

Version:
26 lines (21 loc) • 641 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _jsCsp = require("js-csp"); var putOnChan = function putOnChan(ch, value) { (0, _jsCsp.go)(regeneratorRuntime.mark(function callee$1$0() { return regeneratorRuntime.wrap(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: context$2$0.next = 2; return (0, _jsCsp.put)(ch, value); case 2: case "end": return context$2$0.stop(); } }, callee$1$0, this); })); }; exports["default"] = putOnChan; module.exports = exports["default"];