Skip to content
/ synk Public

Synk is a Javascript library which allows suspendable functions using ECMA6 generators.

License

Notifications You must be signed in to change notification settings

ezaca/synk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Use Guide

You should include the files of Synk, create your generator-function yielding asynchronous processes that you want to be synchronized with the function, and create a new Synk instance to handle your function.

<script type="text/javascript" src="synk.js">
<script type="text/javascript" src="synk.snippets.js">

function* myExample(arg1, arg2)
{
  alert('Synk code started');
  yield new Snippet.Delay(2000);
  alert('Synk code finished');
}

new Synk(myExample, [1, 2]);

See the documentation for details or get started.

About

Synk is a Javascript library which allows suspendable functions using ECMA6 generators.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published