Waits for a move to occur and executes the provided function.

  • Parameters

    • fn: () => void

      The function to be executed when a move occurs.

    Returns () => void