Documentation

Batteries.Lean.System.IO

Functions for manipulating a list of tasks #

def IO.waitAny' {α : Type} (tasks : List (Task α)) (h : 0 < tasks.length := by nonempty_list) :
BaseIO (α × List (Task α))

Given a non-empty list of tasks, wait for the first to complete. Return the value and the list of remaining tasks.

Equations
    Instances For
      def List.waitAll {α : Type u_1} (tasks : List (Task α)) :
      Task (List α)

      Given a list of tasks, create the task returning the list of results, by waiting for each.

      Equations
        Instances For