Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sample for async system implementation #3

Open
jorinvo opened this issue Jul 22, 2016 · 0 comments
Open

add sample for async system implementation #3

jorinvo opened this issue Jul 22, 2016 · 0 comments

Comments

@jorinvo
Copy link
Member

jorinvo commented Jul 22, 2016

The API of the emulator is built with Promises to allow an asynchronous implementation.
The current implementation is all synchronous, in the browser.
All the commands are designed in a way to only interact with the state through the "system calls".
This way it should be possible to implement the "system calls" asynchronous without changing the commands.

An asynchronous implementation could run the system calls on a server for example, persist them or even allow multiple users to interact with the same system this way.

Even better would be to think first about further decoupling the system from the index.js file. Would be nice to be able to choose with which system to initialize the emulator instance.

@jorinvo jorinvo modified the milestone: 1.0 Jul 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant