Hacker News new | ask | show | jobs
by bobkazamakis 1247 days ago
>limiting the synchronous APIs to just workers seems like one too many layers of indirection

An unresponsive script is slowing this window down - kill process ot wait?

1 comments

The file handler is already tucked inside an asynchronous Promise based API. I think it’s reasonable that a mere attempt to get a handler synchronously is made possible. Whether to support synchronous read/write access is another matter.

I would be delighted if handlers were more akin to byte arrays that could be written and read synchronously, albeit with an asynchronous function to persist changes to the disk.