Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
o

AsyncValue

object AsyncValue

Defined by scalive.AsyncValue. View source (scalive/api/src/scalive/lifecycle/Async.scala:21-59)

Extension methods5

isLoading

extension def isLoading[A](value: AsyncValue[A]): Boolean

Defined by scalive.AsyncValue.isLoading. View source (scalive/api/src/scalive/lifecycle/Async.scala:53-53)

isOk

extension def isOk[A](value: AsyncValue[A]): Boolean

Defined by scalive.AsyncValue.isOk. View source (scalive/api/src/scalive/lifecycle/Async.scala:54-54)

loading

extension def loading[A](value: AsyncValue[A])(reset: Boolean = ...): AsyncValue[A]

Defined by scalive.AsyncValue.loading. View source (scalive/api/src/scalive/lifecycle/Async.scala:55-56)

updated

extension def updated[A](value: AsyncValue[A])(result: LiveAsyncResult[A]): AsyncValue[A]

Defined by scalive.AsyncValue.updated. View source (scalive/api/src/scalive/lifecycle/Async.scala:57-58)

valueOption

extension def valueOption[A](value: AsyncValue[A]): Option[A]

Defined by scalive.AsyncValue.valueOption. View source (scalive/api/src/scalive/lifecycle/Async.scala:52-52)

Methods8

applyResult

def applyResult[A](current: AsyncValue[A], result: LiveAsyncResult[A]): AsyncValue[A]

Defined by scalive.AsyncValue.applyResult. View source (scalive/api/src/scalive/lifecycle/Async.scala:44-49)

currentlyLoading

def currentlyLoading[A](value: AsyncValue[A]): Boolean

Defined by scalive.AsyncValue.currentlyLoading. View source (scalive/api/src/scalive/lifecycle/Async.scala:33-35)

currentlyOk

def currentlyOk[A](value: AsyncValue[A]): Boolean

Defined by scalive.AsyncValue.currentlyOk. View source (scalive/api/src/scalive/lifecycle/Async.scala:37-39)

currentValue

def currentValue[A](value: AsyncValue[A]): Option[A]

Defined by scalive.AsyncValue.currentValue. View source (scalive/api/src/scalive/lifecycle/Async.scala:26-31)

empty

def empty[A]: AsyncValue[A]

Defined by scalive.AsyncValue.empty. View source (scalive/api/src/scalive/lifecycle/Async.scala:22-22)

loading

def loading[A]: AsyncValue[A]

Defined by scalive.AsyncValue.loading. View source (scalive/api/src/scalive/lifecycle/Async.scala:23-23)

markLoading

def markLoading[A](current: AsyncValue[A], reset: Boolean = ...): AsyncValue[A]

Defined by scalive.AsyncValue.markLoading. View source (scalive/api/src/scalive/lifecycle/Async.scala:41-42)

ok

def ok[A](value: A): AsyncValue[A]

Defined by scalive.AsyncValue.ok. View source (scalive/api/src/scalive/lifecycle/Async.scala:24-24)

Values1

Empty

val Empty: AsyncValue[Nothing]

Defined by scalive.AsyncValue.Empty. View source (scalive/api/src/scalive/lifecycle/Async.scala:15-15)