goog.module('lambdas.Runnable$impl');

const $Util = goog.require('nativebootstrap.Util$impl');

let $LambdaAdaptor = goog.forwardDeclare('lambdas.Runnable.$LambdaAdaptor$impl');

/**
 * @interface
 */
class Runnable {
 /** @abstract @nodts */
 m_run__void() {}
 /** @nodts @return {!Runnable} */
 static $adapt(/** ?function():void */ fn) {
  Runnable.$clinit();
  return new $LambdaAdaptor(fn);
 }
 /** @nodts */
 static $clinit() {
  Runnable.$clinit = () =>{};
  Runnable.$loadModules();
 }
 
 static $markImplementor(/** Function */ ctor) {
  ctor.prototype.$implements__lambdas_Runnable = true;
 }
 /** @nodts @return {boolean} */
 static $isInstance(/** ? */ instance) {
  return instance != null && !!instance.$implements__lambdas_Runnable;
 }
 
 /** @nodts */
 static $loadModules() {
  $LambdaAdaptor = goog.module.get('lambdas.Runnable.$LambdaAdaptor$impl');
 }
}
Runnable.$markImplementor(/**@type {Function}*/ (Runnable));
$Util.$setClassMetadataForInterface(/**@type {Function}*/ (Runnable), 'lambdas.Runnable');

exports = Runnable;

//# sourceMappingURL=Runnable.js.map
