Comments (2)
I added an example for spawn
- https://github.com/hnakamur/luv_fiber_example/blob/master/process.lua
- https://github.com/hnakamur/luv_fiber_example/blob/master/process_test.lua
Compared to another example using lua_promise, it is easier to read without clutter of:done(function(result)
.
However I am wondering how to return back child
and pid
in case of cancel the spawned process with process_kill
.
Could you tell me a suggestion about that?
from luv.
I don't think sugar like this should go in the luv project. It's aim is to be just libuv bindings and nothing more.
from luv.
Related Issues (20)
- fs_access does not accept a mode for `F_OK` HOT 1
- uv.fs_scandir skips dotfiles HOT 6
- Please consider upgrading the minimum required version of cmake HOT 1
- Running commands in strings fails HOT 2
- MINGW64 stat defines interfere with FS_CALL macro expansion HOT 1
- Allow for custom installation prefix through CMAKE_INSTALL_PREFIX
- Luv Async not performing as expected HOT 7
- Unable to `cancel` a `luv_work_ctx_t` handle HOT 16
- Maintain documentation in a machine readable format HOT 12
- segfault on luv_check_handle HOT 5
- segfault on new_thread and worker.queue HOT 8
- clean stale, unused branches HOT 2
- Frequent segfaults in `push_fs_result` HOT 16
- request bind v1.45.0 new features HOT 13
- Change `get_constrained_memory` binding to return `nil` instead of `0`
- `cpu_info` binding might not handle `model` correctly HOT 2
- Release 1.45.0 checklist. HOT 1
- Add `fs_access` test(s)
- request bind v1.46.0 new features
- fs_scandir_next() sometimes returns name but no type HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luv.