Tuesday | 21 MAY 2024
[ previous ]
[ next ]

Finishing Up the addon

Date: 2022-02-19

Finished up the node addon for universe and I have most of the functions ported. It's now at a usable state. One thing I realized was that everything is synchronous which made development easier but really this should all be async. I imagine I don't want to be blocking while the library is making a network request to a database.

I've looked at the callback example and got that implemented but that doesn't seem to change anything, the code still is synchronous except now I wait for the callback to trigger before it runs the next line. I'm not sure what's going on with that.

I also tried the async example which seems to do what I want but it loses the context that the session has been started. I'm guess the async worker stuff might be starting something without the environment being passed in.

Either way the next step is to split out all the functions into separate files and hopefully once I have an answer to the async stuff I can finalize this little library.