scheduler.unregisterActor (this);
Preconditions.checkState (this.handler.compareAndSet (handler, null));
Preconditions.checkState (this.scheduler.compareAndSet (scheduler, null));
} else {
if (assign != null) {
assign.future.triggerFailure (new CallbackCanceled ());
Preconditions.checkState (this.assignAction.compareAndSet (assign, null));
}
for (final ActorAction<?> action : this.actions)
action.future.triggerFailure (new CallbackCanceled ());
this.actions.clear ();
}
} else {
final ActorAssignAction assign = this.assignAction.get ();
final CallbackHandler handler = this.handler.get ();