Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
/** @constructor */
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler = (function() {
  ScalaJS.c.java_lang_Object.call(this);
  this.ec$1 = null
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype = new ScalaJS.inheritable.java_lang_Object();
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.constructor = ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler;
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.schedule__Lscala_Function1__Lmonifu_concurrent_Cancelable = (function(action) {
  return ScalaJS.impls.monifu_concurrent_Scheduler$class__schedule__Lmonifu_concurrent_Scheduler__Lscala_Function1__Lmonifu_concurrent_Cancelable(this, action)
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.schedule__Lscala_concurrent_duration_FiniteDuration__Lscala_Function1__Lmonifu_concurrent_Cancelable = (function(initialDelay, action) {
  return ScalaJS.impls.monifu_concurrent_Scheduler$class__schedule__Lmonifu_concurrent_Scheduler__Lscala_concurrent_duration_FiniteDuration__Lscala_Function1__Lmonifu_concurrent_Cancelable(this, initialDelay, action)
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.scheduleRepeated__Lscala_concurrent_duration_FiniteDuration__Lscala_concurrent_duration_FiniteDuration__Lscala_Function0__Lmonifu_concurrent_Cancelable = (function(initialDelay, delay, action) {
  return ScalaJS.impls.monifu_concurrent_Scheduler$class__scheduleRepeated__Lmonifu_concurrent_Scheduler__Lscala_concurrent_duration_FiniteDuration__Lscala_concurrent_duration_FiniteDuration__Lscala_Function0__Lmonifu_concurrent_Cancelable(this, initialDelay, delay, action)
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.scheduleRecursive__Lscala_concurrent_duration_FiniteDuration__Lscala_concurrent_duration_FiniteDuration__Lscala_Function1__Lmonifu_concurrent_Cancelable = (function(initialDelay, delay, action) {
  return ScalaJS.impls.monifu_concurrent_Scheduler$class__scheduleRecursive__Lmonifu_concurrent_Scheduler__Lscala_concurrent_duration_FiniteDuration__Lscala_concurrent_duration_FiniteDuration__Lscala_Function1__Lmonifu_concurrent_Cancelable(this, initialDelay, delay, action)
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.prepare__Lscala_concurrent_ExecutionContext = (function() {
  return ScalaJS.impls.scala_concurrent_ExecutionContext$class__prepare__Lscala_concurrent_ExecutionContext__Lscala_concurrent_ExecutionContext(this)
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.scheduleOnce__Lscala_Function0__Lmonifu_concurrent_Cancelable = (function(action) {
  var cancelable = ScalaJS.modules.monifu_concurrent_Cancelable().apply__Lmonifu_concurrent_Cancelable();
  this.execute__Ljava_lang_Runnable__V(new ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler$$anon$1().init___Lmonifu_concurrent_schedulers_ContextScheduler__Lscala_Function0__Lmonifu_concurrent_Cancelable(this, action, cancelable));
  return cancelable
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.scheduleOnce__Lscala_concurrent_duration_FiniteDuration__Lscala_Function0__Lmonifu_concurrent_Cancelable = (function(initialDelay, action) {
  var sub = ScalaJS.modules.monifu_concurrent_cancelables_SingleAssignmentCancelable().apply__Lmonifu_concurrent_cancelables_SingleAssignmentCancelable();
  var task = this.setTimeout__p1__J__Lscala_Function0__Lscala_scalajs_js_Dynamic(initialDelay.toMillis__J(), new ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler$$anonfun$1().init___Lmonifu_concurrent_schedulers_ContextScheduler__Lscala_Function0__Lmonifu_concurrent_cancelables_SingleAssignmentCancelable(this, action, sub));
  sub.$$colon$eq__Lmonifu_concurrent_Cancelable__V(ScalaJS.modules.monifu_concurrent_Cancelable().apply__Lscala_Function0__Lmonifu_concurrent_Cancelable(new ScalaJS.c.scala_scalajs_runtime_AnonFunction0().init___Lscala_scalajs_js_Function0((function(arg$outer, task$1) {
    return (function() {
      arg$outer.monifu$concurrent$schedulers$ContextScheduler$$clearTimeout__Lscala_scalajs_js_Dynamic__Lscala_scalajs_js_Dynamic(task$1);
      return ScalaJS.bV(undefined)
    })
  })(this, task))));
  return sub
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.execute__Ljava_lang_Runnable__V = (function(runnable) {
  this.ec$1.execute__Ljava_lang_Runnable__V(runnable)
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.reportFailure__Ljava_lang_Throwable__V = (function(t) {
  this.ec$1.reportFailure__Ljava_lang_Throwable__V(t)
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.setTimeout__p1__J__Lscala_Function0__Lscala_scalajs_js_Dynamic = (function(delayMillis, cb) {
  var lambda = (function(arg$outer, cb$1) {
    return (function() {
      try {
        return cb$1
      } catch ($jsexc$) {
        $jsexc$ = ScalaJS.wrapJavaScriptException($jsexc$);
        var t$2 = $jsexc$;
        arg$outer.reportFailure__Ljava_lang_Throwable__V(t$2);
        return ScalaJS.modules.scala_runtime_BoxedUnit().UNIT__Lscala_runtime_BoxedUnit()
      }
    })
  })(this, cb);
  return ScalaJS.g["setTimeout"](lambda, ScalaJS.modules.scala_scalajs_js_Any().fromLong__J__Lscala_scalajs_js_Number(delayMillis))
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.monifu$concurrent$schedulers$ContextScheduler$$clearTimeout__Lscala_scalajs_js_Dynamic__Lscala_scalajs_js_Dynamic = (function(task) {
  return ScalaJS.g["clearTimeout"](task)
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.init___Lscala_concurrent_ExecutionContext = (function(ec) {
  this.ec$1 = ec;
  ScalaJS.c.java_lang_Object.prototype.init___.call(this);
  ScalaJS.impls.scala_concurrent_ExecutionContext$class__$init$__Lscala_concurrent_ExecutionContext__V(this);
  ScalaJS.impls.monifu_concurrent_Scheduler$class__$init$__Lmonifu_concurrent_Scheduler__V(this);
  return this
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.prepare__ = (function() {
  return this.prepare__Lscala_concurrent_ExecutionContext()
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.scheduleRecursive__Lscala_concurrent_duration_FiniteDuration__Lscala_concurrent_duration_FiniteDuration__Lscala_Function1__ = (function(initialDelay, delay, action) {
  return this.scheduleRecursive__Lscala_concurrent_duration_FiniteDuration__Lscala_concurrent_duration_FiniteDuration__Lscala_Function1__Lmonifu_concurrent_Cancelable(initialDelay, delay, action)
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.scheduleRepeated__Lscala_concurrent_duration_FiniteDuration__Lscala_concurrent_duration_FiniteDuration__Lscala_Function0__ = (function(initialDelay$2, delay$2, action$2) {
  return this.scheduleRepeated__Lscala_concurrent_duration_FiniteDuration__Lscala_concurrent_duration_FiniteDuration__Lscala_Function0__Lmonifu_concurrent_Cancelable(initialDelay$2, delay$2, action$2)
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.schedule__Lscala_concurrent_duration_FiniteDuration__Lscala_Function1__ = (function(initialDelay$3, action$3) {
  return this.schedule__Lscala_concurrent_duration_FiniteDuration__Lscala_Function1__Lmonifu_concurrent_Cancelable(initialDelay$3, action$3)
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.schedule__Lscala_Function1__ = (function(action$4) {
  return this.schedule__Lscala_Function1__Lmonifu_concurrent_Cancelable(action$4)
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.monifu$concurrent$schedulers$ContextScheduler$$clearTimeout__Lscala_scalajs_js_Dynamic__ = (function(task) {
  return this.monifu$concurrent$schedulers$ContextScheduler$$clearTimeout__Lscala_scalajs_js_Dynamic__Lscala_scalajs_js_Dynamic(task)
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.reportFailure__Ljava_lang_Throwable__ = (function(t) {
  return ScalaJS.bV(this.reportFailure__Ljava_lang_Throwable__V(t))
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.execute__Ljava_lang_Runnable__ = (function(runnable) {
  return ScalaJS.bV(this.execute__Ljava_lang_Runnable__V(runnable))
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.scheduleOnce__Lscala_concurrent_duration_FiniteDuration__Lscala_Function0__ = (function(initialDelay$4, action$5) {
  return this.scheduleOnce__Lscala_concurrent_duration_FiniteDuration__Lscala_Function0__Lmonifu_concurrent_Cancelable(initialDelay$4, action$5)
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.scheduleOnce__Lscala_Function0__ = (function(action$6) {
  return this.scheduleOnce__Lscala_Function0__Lmonifu_concurrent_Cancelable(action$6)
});
/** @constructor */
ScalaJS.inheritable.monifu_concurrent_schedulers_ContextScheduler = (function() {
  /*<skip>*/
});
ScalaJS.inheritable.monifu_concurrent_schedulers_ContextScheduler.prototype = ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype;
ScalaJS.is.monifu_concurrent_schedulers_ContextScheduler = (function(obj) {
  return (!(!((obj && obj.$classData) && obj.$classData.ancestors.monifu_concurrent_schedulers_ContextScheduler)))
});
ScalaJS.as.monifu_concurrent_schedulers_ContextScheduler = (function(obj) {
  if ((ScalaJS.is.monifu_concurrent_schedulers_ContextScheduler(obj) || (obj === null))) {
    return obj
  } else {
    ScalaJS.throwClassCastException(obj, "monifu.concurrent.schedulers.ContextScheduler")
  }
});
ScalaJS.isArrayOf.monifu_concurrent_schedulers_ContextScheduler = (function(obj, depth) {
  return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.monifu_concurrent_schedulers_ContextScheduler)))
});
ScalaJS.asArrayOf.monifu_concurrent_schedulers_ContextScheduler = (function(obj, depth) {
  if ((ScalaJS.isArrayOf.monifu_concurrent_schedulers_ContextScheduler(obj, depth) || (obj === null))) {
    return obj
  } else {
    ScalaJS.throwArrayCastException(obj, "Lmonifu.concurrent.schedulers.ContextScheduler;", depth)
  }
});
ScalaJS.data.monifu_concurrent_schedulers_ContextScheduler = new ScalaJS.ClassTypeData({
  monifu_concurrent_schedulers_ContextScheduler: 0
}, false, "monifu.concurrent.schedulers.ContextScheduler", ScalaJS.data.java_lang_Object, {
  monifu_concurrent_schedulers_ContextScheduler: 1,
  monifu_concurrent_Scheduler: 1,
  scala_concurrent_ExecutionContext: 1,
  java_lang_Object: 1
});
ScalaJS.c.monifu_concurrent_schedulers_ContextScheduler.prototype.$classData = ScalaJS.data.monifu_concurrent_schedulers_ContextScheduler;
//@ sourceMappingURL=ContextScheduler.js.map
New to GrepCode? Check out our FAQ X