import { Task } from "../helpers" ; export abstract class Observer { public _acceptedTasks : Set < string > ; abstract handleUpdate ( task ) ; update ( task ) { if ( ! this . _acceptedTasks . has ( task . name ) ) return ; this . handleUpdate ( task ) ; } }