Documentation

Lapis.Server.Progress

A progress token can be a string or number

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Equations
    • One or more equations did not get rendered due to their size.
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Equations
        • One or more equations did not get rendered due to their size.

        State of an active progress operation

        Instances For

          Manages active progress tokens and their lifecycle

          Instances For

            Create a new progress manager

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              Request the client to create a progress token (for server-initiated progress)

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                def Lapis.Server.Progress.ProgressManager.begin (pm : ProgressManager) (token : ProgressToken) (title : String) (cancellable : Bool := false) (message : Option String := none) (percentage : Option Nat := none) :

                Begin a progress operation

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  def Lapis.Server.Progress.ProgressManager.report (pm : ProgressManager) (token : ProgressToken) (message : Option String := none) (percentage : Option Nat := none) (cancellable : Option Bool := none) :

                  Report progress update

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    End a progress operation

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      Check if a progress operation was cancelled

                      Equations
                      Instances For

                        Mark a progress operation as cancelled (called when client sends cancel)

                        Equations
                        Instances For
                          def Lapis.Server.Progress.ProgressManager.withProgress {α : Type} (pm : ProgressManager) (title : String) (cancellable : Bool := false) (action : ProgressTokenIO α) :
                          IO α

                          Run an action with progress reporting

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For

                            A handle for reporting progress within an operation

                            Instances For

                              Report progress

                              Equations
                              Instances For

                                Throw if cancelled

                                Equations
                                Instances For