fynjs API
    Preparing search index...

    Function runFinally

    • Register cleanup that runs once the run ends, whether it passed or failed.

      These are pulled out of the step list before the run starts, so their position does not matter and they are not part of the value flow. You can pass more than one. A cleanup function may return a Promise. If one throws or rejects, that error goes to done.

      Parameters

      Returns WrapObject