Drop the await in the return: This would only be relevant when this is
inside a try-catch, otherwise it doesn't matter whether the code "awaits" here
or in the caller (which anyways needs to understand promises)
Drop the whole Promise-construction: The actual call into the lz4 library would
always immediately run anyways, and blockingly resolve the promise.
await
in thereturn
: This would only be relevant when this is inside a try-catch, otherwise it doesn't matter whether the code "awaits" here or in the caller (which anyways needs to understand promises)