DEV Community

Discussion on: Don't make that function async.

Collapse
 
acostalima profile image
André Costa Lima

If you are designing an API, functions involving IO operations are typically good candidates to be exposed asynchronously. In some cases, it may be worthwhile to expose both sync and async interfaces.