4 ms·
This property is not really part of the type system though. Also, as mentioned by another commenter below - is a file exists operation async? Sync? Why, why no
by kaba0 3y ago
This property is not really part of the type system though.
Also, as mentioned by another commenter below - is a file exists operation async? Sync? Why, why not?
- wiseowise 3y agoWhat if file exists operation MUST be sync?
- lolinder 3y agoIn TypeScript at least, async-ness is encoded in the type system, because async/await is just syntactic sugar for Promise/then/catch.
- samus 3y agoVery simple - in Java, almost any IO operation in blocking. Exceptions are the stuff in the NIO package, thread interruption and signalling, and maybe process termination.