##// END OF EJS Templates
Added Cancellation.combine(...tokens) method to combine multiple cancellation...
Added Cancellation.combine(...tokens) method to combine multiple cancellation tokens to the aggregated token.

File last commit:

r134:511bcc634d65 ioc ts support
r170:1391543e8282 v1.4.5 default
Show More
Bar.ts
43 lines | 772 B | video/mp2t | TypeScriptLexer
import { Foo } from "./Foo";
/* export const service = annotate<Bar>();
@service.wire({
foo: dependency("foo"),
nested: {
lazy: dependency("foo", { lazy: true })
},
host: dependency("host")
}, "") */
export class Bar {
barName = "Twister";
_v: Foo | undefined;
constructor(
_opts: {
foo?: Foo;
nested?: {
lazy: () => Foo
},
host: string
},
s: string
) {
if (_opts && _opts.foo)
this._v = _opts.foo;
if (s)
this.barName = s;
}
setName(name: string) {
}
getFoo() {
if (this._v === undefined)
throw new Error("The foo isn't set");
return this._v;
}
}