Type alias ResourceRelease

ResourceRelease: ((e?) => Promise<void>)

Type declaration

    • (e?): Promise<void>
    • Resource release function Pass any error during resource usage into the function The function should not rethrow the error, it only uses it to change its releasing behaviour, the withF and withG utilities will rethrow the error

      Parameters

      • Optional e: Error

      Returns Promise<void>

Generated using TypeDoc