Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
/** @constructor */
ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable = (function() {
  ScalaJS.c.java_lang_Object.call(this);
  this.$$undisCanceled$1 = false;
  this.$$undsubscription$1 = null;
  this.lock$1 = null
});
ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable.prototype = new ScalaJS.inheritable.java_lang_Object();
ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable.prototype.constructor = ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable;
ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable.prototype.isCanceled__Z = (function() {
  var _$this = this;
  tailCallLoop: while (true) {
    if ((!_$this.lock$1.compareAndSet__O__O__Z(ScalaJS.bZ(false), ScalaJS.bZ(true)))) {
      continue tailCallLoop
    } else {
      try {
        return _$this.$$undisCanceled$1
      } finally {
        _$this.lock$1.set__O__V(ScalaJS.bZ(false))
      }
    }
  }
});
ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable.prototype.cancel__V = (function() {
  var _$this = this;
  tailCallLoop: while (true) {
    if ((!_$this.lock$1.compareAndSet__O__O__Z(ScalaJS.bZ(false), ScalaJS.bZ(true)))) {
      continue tailCallLoop;
      ScalaJS.modules.scala_runtime_BoxedUnit().UNIT__Lscala_runtime_BoxedUnit()
    } else {
      if (_$this.$$undisCanceled$1) {
        _$this.lock$1.set__O__V(ScalaJS.bZ(false));
        ScalaJS.modules.scala_runtime_BoxedUnit().UNIT__Lscala_runtime_BoxedUnit()
      } else {
        try {
          _$this.$$undsubscription$1.cancel__V();
          ScalaJS.modules.scala_runtime_BoxedUnit().UNIT__Lscala_runtime_BoxedUnit()
        } finally {
          _$this.$$undisCanceled$1 = true;
          _$this.$$undsubscription$1 = ScalaJS.modules.monifu_concurrent_Cancelable().empty__Lmonifu_concurrent_Cancelable();
          _$this.lock$1.set__O__V(ScalaJS.bZ(false))
        }
      }
    };
    return undefined
  }
});
ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable.prototype.update__Lmonifu_concurrent_Cancelable__V = (function(value) {
  var _$this = this;
  tailCallLoop: while (true) {
    if ((!_$this.lock$1.compareAndSet__O__O__Z(ScalaJS.bZ(false), ScalaJS.bZ(true)))) {
      continue tailCallLoop;
      ScalaJS.modules.scala_runtime_BoxedUnit().UNIT__Lscala_runtime_BoxedUnit()
    } else {
      if (_$this.$$undisCanceled$1) {
        try {
          value.cancel__V();
          ScalaJS.modules.scala_runtime_BoxedUnit().UNIT__Lscala_runtime_BoxedUnit()
        } finally {
          _$this.lock$1.set__O__V(ScalaJS.bZ(false))
        }
      } else {
        try {
          _$this.$$undsubscription$1 = value;
          ScalaJS.modules.scala_runtime_BoxedUnit().UNIT__Lscala_runtime_BoxedUnit()
        } finally {
          _$this.lock$1.set__O__V(ScalaJS.bZ(false))
        }
      }
    };
    return undefined
  }
});
ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable.prototype.$$colon$eq__Lmonifu_concurrent_Cancelable__V = (function(value) {
  this.update__Lmonifu_concurrent_Cancelable__V(value)
});
ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable.prototype.init___ = (function() {
  ScalaJS.c.java_lang_Object.prototype.init___.call(this);
  this.$$undisCanceled$1 = false;
  this.$$undsubscription$1 = ScalaJS.modules.monifu_concurrent_Cancelable().apply__Lmonifu_concurrent_Cancelable();
  this.lock$1 = ScalaJS.as.monifu_concurrent_atomic_AtomicAny(ScalaJS.modules.monifu_concurrent_atomic_Atomic().apply__O__Lmonifu_concurrent_atomic_AtomicBuilder__Lmonifu_concurrent_atomic_Atomic(ScalaJS.bZ(false), ScalaJS.modules.monifu_concurrent_atomic_AtomicBuilder().AtomicBooleanBuilder__Lmonifu_concurrent_atomic_AtomicBuilder()));
  return this
});
ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable.prototype.$$colon$eq__Lmonifu_concurrent_Cancelable__ = (function(value) {
  return ScalaJS.bV(this.$$colon$eq__Lmonifu_concurrent_Cancelable__V(value))
});
ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable.prototype.update__Lmonifu_concurrent_Cancelable__ = (function(value$2) {
  return ScalaJS.bV(this.update__Lmonifu_concurrent_Cancelable__V(value$2))
});
ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable.prototype.cancel__ = (function() {
  return ScalaJS.bV(this.cancel__V())
});
ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable.prototype.isCanceled__ = (function() {
  return ScalaJS.bZ(this.isCanceled__Z())
});
/** @constructor */
ScalaJS.inheritable.monifu_concurrent_cancelables_MultiAssignmentCancelable = (function() {
  /*<skip>*/
});
ScalaJS.inheritable.monifu_concurrent_cancelables_MultiAssignmentCancelable.prototype = ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable.prototype;
ScalaJS.is.monifu_concurrent_cancelables_MultiAssignmentCancelable = (function(obj) {
  return (!(!((obj && obj.$classData) && obj.$classData.ancestors.monifu_concurrent_cancelables_MultiAssignmentCancelable)))
});
ScalaJS.as.monifu_concurrent_cancelables_MultiAssignmentCancelable = (function(obj) {
  if ((ScalaJS.is.monifu_concurrent_cancelables_MultiAssignmentCancelable(obj) || (obj === null))) {
    return obj
  } else {
    ScalaJS.throwClassCastException(obj, "monifu.concurrent.cancelables.MultiAssignmentCancelable")
  }
});
ScalaJS.isArrayOf.monifu_concurrent_cancelables_MultiAssignmentCancelable = (function(obj, depth) {
  return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.monifu_concurrent_cancelables_MultiAssignmentCancelable)))
});
ScalaJS.asArrayOf.monifu_concurrent_cancelables_MultiAssignmentCancelable = (function(obj, depth) {
  if ((ScalaJS.isArrayOf.monifu_concurrent_cancelables_MultiAssignmentCancelable(obj, depth) || (obj === null))) {
    return obj
  } else {
    ScalaJS.throwArrayCastException(obj, "Lmonifu.concurrent.cancelables.MultiAssignmentCancelable;", depth)
  }
});
ScalaJS.data.monifu_concurrent_cancelables_MultiAssignmentCancelable = new ScalaJS.ClassTypeData({
  monifu_concurrent_cancelables_MultiAssignmentCancelable: 0
}, false, "monifu.concurrent.cancelables.MultiAssignmentCancelable", ScalaJS.data.java_lang_Object, {
  monifu_concurrent_cancelables_MultiAssignmentCancelable: 1,
  monifu_concurrent_cancelables_BooleanCancelable: 1,
  monifu_concurrent_Cancelable: 1,
  java_lang_Object: 1
});
ScalaJS.c.monifu_concurrent_cancelables_MultiAssignmentCancelable.prototype.$classData = ScalaJS.data.monifu_concurrent_cancelables_MultiAssignmentCancelable;
//@ sourceMappingURL=MultiAssignmentCancelable.js.map
New to GrepCode? Check out our FAQ X