joo
joo
DDeno
Created by joo on 9/22/2023 in #help
'Spawn' multiple promises from the same module
Also some further things I'd like to improve on would be: * Make the actor an actual object which stores the receiver, so I avoid having all that Rc/RefCell stuff * Being able to terminate a running task * Being able to handle errors per task * It would be nice If I could load all functions exported by the module during init and call the v8::Function directely
4 replies
DDeno
Created by joo on 9/22/2023 in #help
'Spawn' multiple promises from the same module
I've tried to make a small rust example of what I'm trying to do: https://gist.github.com/jon-zu/68fe5f5586d7ede4abf09cd9e6bb20e5 Would be nice to get some feedback if that's the right way to do It or If I should do It differently? I'm also not sure If I should make an extra isolate per execution however I don't know what are the implications for that especially in terms of overhead. Also I'm not sure if the event-loop is cancel-safe, from what I saw It's a simple poll function so It should be right?
4 replies