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

Documentation on how to use async API #55

Open
neimanpinchas opened this issue Dec 3, 2019 · 3 comments
Open

Documentation on how to use async API #55

neimanpinchas opened this issue Dec 3, 2019 · 3 comments

Comments

@neimanpinchas
Copy link

I would like to mimic the mysql api

However i could'nt figure out how to use the async API from uniter.

Could be its only possible from phpcore but could'nt figure out this too.

Any help?

@asmblah
Copy link
Owner

asmblah commented Dec 4, 2019

Hi @neimanpinchas,

There aren't any docs I can point you to for the different modes (yet) unfortunately, sorry about that. Are you hoping to do this as a feature to be included in the runtime (to go into phpruntime) or do you want to keep it separate?

I'm asking because if you want to contribute to the runtime then it would be easiest to fork the phpruntime project and make your changes there. For an example, check out the way usleep(...) is implemented: https://github.com/uniter/phpruntime/blob/master/src/builtin/functions/time.js

If you want to keep it separate, then there's not (yet) a nice API for installing plugins in the command-line binary run under Node.js, although that would be a really handy feature that I'd like to roadmap. Let me know if that's what you need here.

Let me know how you get on, and ask any questions you need here!

Cheers

@neimanpinchas
Copy link
Author

neimanpinchas commented Dec 4, 2019 via email

@asmblah
Copy link
Owner

asmblah commented Dec 7, 2019

Good luck and keep me posted on how you get on @neimanpinchas!

Yes, a simple way of specifying plugins to use is badly needed - I'm thinking a .uniterrc or uniter.config.js or uniter.json, something along those lines (although it should probably also pick up on the system php.ini if present)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants