package basis
A home for types that are needed more or less pervasively.
@author Bernard Sufrin, Oxford $Revision: 228 $ $Date: 2016-03-04 16:11:56 +0000 (Fri, 04 Mar 2016)
- Alphabetic
- By Inheritance
- basis
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
implicit
class
Identity
extends AnyRef
Implicit class to print thread names and identities
-
type
Milliseconds = Long
Units of time expressed as milliseconds:
-
class
NameGenerator
extends AnyRef
Systematic generation of names for classes of CSO object.
-
trait
Named
[+T] extends AnyRef
A mixin to support the naming of objects during or after construction.
-
type
Nanoseconds = Long
Units of time expressed as nanoseconds: (eg) sleep(3*Day+14*Hour)
Value Members
- def getPropElse(name: String)(orelse: String): String
-
def
getPropElse[T](name: String, coerce: (String) ⇒ T)(orelse: T): T
Return
coerce(
text)
for a property specified on the scala command line by-Dname=
text.Return
coerce(
text)
for a property specified on the scala command line by-Dname=
text. If there is no such property then returnorelse
. -
def
parkUntilDeadlineOr(blocker: AnyRef, deadline: Nanoseconds, condition: ⇒ Boolean): Nanoseconds
Wait until
deadline
forcondition
to become true.Wait until
deadline
forcondition
to become true. If it became true before the deadline then the result is the time remaining when it became true. Otherwise the result will be negative, and representing the time after the deadline when deadline expiry was noticed.- blocker
the object to be reported as the blocker by debuggers
- deadline
the deadline in nanoseconds
- condition
the condition
- returns
Nanoseconds remaining when the condition became true or when the deadline expired (possibly negative)
- Annotations
- @inline()
-
def
parkUntilElapsedOr(blocker: AnyRef, timeOut: Nanoseconds, condition: ⇒ Boolean): Nanoseconds
Equivalent to
parkUntilDeadline(blocker, timeOut+System.nanoTime, condition)
Equivalent to
parkUntilDeadline(blocker, timeOut+System.nanoTime, condition)
- Annotations
- @inline()