Commit graph

15 commits

Author SHA1 Message Date
n1474335
b5078599dc Merging with upstream master 2017-03-21 23:18:59 +00:00
toby
8d4876a055 Fix Return operation 2017-03-04 11:04:17 -05:00
n1474335
14e9ea699a Jump operations now jump backwards in a more logical way. 2017-03-04 10:57:14 +00:00
n1474335
cb642c156b Merge branch 'master' into feature-async-ops 2017-03-01 23:45:05 +00:00
n1474335
70603be5ab BUGFIX: Jump operations skipping an operation once maxJumps reached. 2017-03-01 21:20:42 +00:00
n1474335
9f75077fe8 Async operation code tidy. 2017-02-27 17:29:43 +00:00
toby
9404f1e0b8 Fix bug when only fork is called
If fork was called with no following operations, progress was undefined,
this caused an infinite loop.
2017-02-22 14:36:14 -05:00
toby
343d350af8 Initial async work
Operations can now:
1) return their progress directly.
2) throw an error.
3) (ADDED) return a promise:
  + that resolves to their progress.
  + that rejects an error message (like throwing but asynchronous).
  For an example see the new operation "Wait" (Flow Control)

Added a flow control operation "Wait", which waits for the number of
milliseconds passed in as its argument. It is a fairly useless operation
but it does demonstrate how asynchronous operations now work.

A recipe like:
```
Fork
Wait (1000ms)
```
will only wait for 1000ms (each wait runs at the same time as each
other).

I have not looked into performance implications yet, also this code is
probably more complicated than it needs to be (would love help on this).
2017-02-14 14:54:51 -05:00
n1474335
e803d208e8 Updated eslint whitespace rules 2017-02-09 15:09:33 +00:00
n1474335
e3c977934b Variable names changed from underscore to CamelCase. Eslint rules updated. #64 2017-01-31 18:24:56 +00:00
n1474335
2257754b94 Jump operations now return the final state when the maximum jump count is reached instead of throwing an error. 2017-01-16 16:00:44 +00:00
n1474335
baa433ab80 'Fork' operation now has an option to ignore errors occuring on each branch 2017-01-16 15:58:38 +00:00
n1474335
4d131c921a BUGFIX #47: Replaced 'const' declarations with 'var' to fix iOS incompatibilities. 2016-12-31 17:12:39 +00:00
n1474335
af4644c9eb Replaced jsHint with eslint. Fixes #4. 2016-12-14 16:39:17 +00:00
n1474335
b1d73a725d Initial commit 2016-11-28 10:42:58 +00:00