My experience with this is in .NET, which has methods like readFile (which is async) and readFileSync.
.NET doesn't really need to provide two separate utility methods like this though, because you can use Task.wait to block until the async task is done.
.NET doesn't really need to provide two separate utility methods like this though, because you can use Task.wait to block until the async task is done.