Run

tinyscalautils.threads.Run
object Run

Attributes

Source
Executors.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Run.type

Members list

Value members

Concrete methods

def apply[U <: Matchable](code: => U)(using exec: Executor | ExecutionContext): Unit

Like Future {..}, but does not construct a future.

Like Future {..}, but does not construct a future.

Attributes

Note

code is rejected if it has type Runnable or Callable because it's probably a mistake: Execute(code) was written when Execute(code.run()) or Execute(code.call()) was intended. In the unlikely case that Execute(code) was desired, add a type ascription: Execute(code: AnyRef).

Source
Executors.scala