2 ms·
> To implement this I need to touch the webserver core, implement a breaking change in the parser library and get a new external library, just to get my log lin
by zozbot234 6y ago
> To implement this I need to touch the webserver core, implement a breaking change in the parser library and get a new external library, just to get my log line in this function. This is a massive refactoring effort just to get a line in my log.
Not quite. It's very easy in Rust to purposefully block on an async call in sync-only code, or spawn blocking code on a side thread in async code and let it "join" whenever the async code block gets executed. Of course you'll get less-than-optimal performance, but no program-wide refactoring is required.
- Sebb767 6y agoSorry, I was talking specifically about TypeScript/JavaScript. I edited the original comment to reflect this :)