RunAfter

tinyscalautils.threads.RunAfter
object RunAfter

Attributes

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

Members list

Value members

Concrete methods

inline def apply[U](delay: Double)(inline code: U)(using timer: Timer): Unit

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

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

Attributes

Note

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

Source
Executors.scala