Adding a todo for AtomicReferenceFieldUpdater in Future.scala
This commit is contained in:
parent
bea02321cd
commit
c34b74e13c
1 changed files with 1 additions and 1 deletions
|
|
@ -802,7 +802,7 @@ class DefaultPromise[T](val timeout: Timeout)(implicit val dispatcher: MessageDi
|
|||
def this(timeout: Long, timeunit: TimeUnit)(implicit dispatcher: MessageDispatcher) = this(Timeout(timeout, timeunit))
|
||||
|
||||
private val _startTimeInNanos = currentTimeInNanos
|
||||
private val ref = new AtomicReference[FState[T]](FState())
|
||||
private val ref = new AtomicReference[FState[T]](FState()) //FIXME create a base-class in Java with an AtomicReferenceFieldUpdater and avoid allocating the AtomicReference for each
|
||||
|
||||
@tailrec
|
||||
private def awaitUnsafe(waitTimeNanos: Long): Boolean = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue