await_for(key) {
        return __awaiter(this, void 0, void 0, function* () {
            return new Promise((resolve, reject) => {
                this.__waiting.get(key).push((value, err) => {
                    if (err) {
                        return reject(err);
                    }
                    resolve(value);
                });
            });
        });
    }
// the function return the value when it coming
the function return the value when it coming
the function return the value when it coming
await_for(key) {
        return __awaiter(this, void 0, void 0, function* () {
            return new Promise((resolve, reject) => {
                this.__waiting.get(key).push((value, err) => {
                    if (err) {
                        return reject(err);
                    }
                    resolve(value);
                });
            });
        });
    }
await_for ( key ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { return new Promise ( ( resolve , reject ) => { this . __waiting . get ( key ) . push ( ( value , err ) => { if ( err ) { return reject ( err ) ; } resolve ( value ) ; } ) ; } ) ; } ) ; }
the function return the value when it coming
the function return the value when it coming