Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

the async part isnt very exciting, but its the callback after the entry has been through the queue and worked on.

its certainly serialized, but nothing fancy otherwise.

it would be synchronous if you blocked the requester until the request go through the queue and then completed. you wouldnt need to introduce an async/await.

you can see examples in JS on the node FS functions. the defualt ones are async, but they have some magic wrappers that make it actually sychronous and block the event loop from running until the file is loaded



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: