import Logger from '../logger/Logger' ; import BaseTask from './BaseTask' ; /**
 * [[RunnableTask]] Task wrapper for any Promised-operation
 */ export default class RunnableTask < T > extends BaseTask { constructor ( logger , private fn , taskName = 'RunnableTask' ) { super ( logger ) ; this . taskName = taskName ; } run ( ) { return this . fn ( ) . then ( ( ) => { } ) ; } }