spice.util

package spice.util

Members list

Type members

Classlikes

case class BufferManager(checkEvery: FiniteDuration, triggerAfter: Int, maxPerBatch: Int, checkFrequency: FiniteDuration, sendEmpty: Boolean, logErrorAfter: Int)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class BufferQueue[T](manager: BufferManager, handler: List[T] => IO[Unit])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Chained(delay: FiniteDuration)

Provides a single-chain of tasks so only one IO can run at a time blocking the others until it completes.

Provides a single-chain of tasks so only one IO can run at a time blocking the others until it completes.

Value parameters

delay

the time to sleep between checks to get a lock

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait ObjectPool[T]

Attributes

Supertypes
class Object
trait Matchable
class Any
trait WorkCache[Key, Result]

WorkCache effectively operates on a Key to guarantee that two jobs for the same Key are not concurrently processed and additional checks on the Key will wait for the same result.

WorkCache effectively operates on a Key to guarantee that two jobs for the same Key are not concurrently processed and additional checks on the Key will wait for the same result.

Type parameters

Key

the key tied to the work

Result

the result of the work

Attributes

Supertypes
class Object
trait Matchable
class Any
sealed trait WorkResult[Result]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class FinalResult[Result]
class ProgressiveResult[Result]
object WorkResult

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
WorkResult.type