Skip to content

Class

ActivityIndicator

An instance of a ActivityIndicatorType that can be started, failed, and succeeded.
final class ActivityIndicator<A> where A : ActivityIndicatorType

Overview

Use newActivity(for:) on ActivityIndicatorType to create one.

let loadingBar = console.loadingBar(title: "Loading")
try await foo.withActivityIndicator {
    try await Task.sleep(for: .seconds(2.5))
}

Topics

Instance Properties

Instance Methods

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype

See Also

Activity