All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lightdb.async.AsyncStoredValue.scala Maven / Gradle / Ivy

package lightdb.async

import lightdb.StoredValue
import rapid.Task

case class AsyncStoredValue[T](underlying: StoredValue[T]) {
  def get: Task[T] = Task(underlying.get())
  def exists: Task[Boolean] = Task(underlying.exists())
  def set(value: T): Task[T] = Task(underlying.set(value))
  def clear(): Task[Unit] = Task(underlying.clear())
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy