Options

final case class Options(autoCancelableRunLoops: Boolean, localContextPropagation: Boolean)

Set of options for customizing the task's behavior.

Set of options for customizing the task's behavior.

See Task.defaultOptions for the default Options instance used by Task.runAsync or Task.runToFuture.

Value Params
autoCancelableRunLoops

should be set to true in case you want flatMap driven loops to be auto-cancelable. Defaults to true.

localContextPropagation

should be set to true in case you want the Local variables to be propagated on async boundaries. Defaults to false.

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

Creates a new set of options from the source, but with the autoCancelableRunLoops value set to false.

Creates a new set of options from the source, but with the autoCancelableRunLoops value set to false.

Creates a new set of options from the source, but with the localContextPropagation value set to false.

Creates a new set of options from the source, but with the localContextPropagation value set to false.

Creates a new set of options from the source, but with the autoCancelableRunLoops value set to true.

Creates a new set of options from the source, but with the autoCancelableRunLoops value set to true.

Creates a new set of options from the source, but with the localContextPropagation value set to true.

Creates a new set of options from the source, but with the localContextPropagation value set to true.

def withSchedulerFeatures(s: Scheduler): Options

Enhances the options set with the features of the underlying Scheduler.

Enhances the options set with the features of the underlying Scheduler.

This enables for example the Options.localContextPropagation in case the Scheduler is a TracingScheduler.

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product