本文整理汇总了TypeScript中vs/base/common/event.buffer函数的典型用法代码示例。如果您正苦于以下问题:TypeScript buffer函数的具体用法?TypeScript buffer怎么用?TypeScript buffer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了buffer函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: listen
listen(_, event: string, arg?: any): Event<any> {
switch (event) {
case 'upload': return buffer(upload(URI.revive(arg)));
}
throw new Error(`Event not found: ${event}`);
}
示例2: constructor
constructor(private service: IExtensionManagementService) {
this.onInstallExtension = buffer(service.onInstallExtension, true);
this.onDidInstallExtension = buffer(service.onDidInstallExtension, true);
this.onUninstallExtension = buffer(service.onUninstallExtension, true);
this.onDidUninstallExtension = buffer(service.onDidUninstallExtension, true);
}
示例3: constructor
constructor(private service: ILocalizationsService) {
this.onDidLanguagesChange = buffer(service.onDidLanguagesChange, true);
}
示例4: constructor
constructor(private service: ILogService) {
this.onDidChangeLogLevel = buffer(service.onDidChangeLogLevel, true);
}
示例5: listen
listen(event: string, arg?: any): Event<any> {
switch (event) {
case 'upload': return buffer(upload(URI.revive(arg)));
}
return undefined;
}
示例6: constructor
constructor(private service: IRemoteAuthorityResolverService) {
this.onResolvingProgress = buffer(service.onResolvingProgress, true);
}
示例7: onResolvingProgress
get onResolvingProgress(): Event<IResolvingProgressEvent> { return buffer(this.channel.listen('onResolvingProgress'), true); }