beginWork | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function beginWork

    • Begins a new transaction. Throws when a transaction is already in progress

      Parameters

      Returns Promise<WorkObject>

      An AsyncDisposable work object that can be used with 'await using' to automatically rollback the work if not yet committed