本文整理汇总了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}`);
}
开发者ID:,项目名称:,代码行数:7,代码来源:
示例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);
}
开发者ID:DonJayamanne,项目名称:vscode,代码行数:6,代码来源:extensionManagementIpc.ts
示例3: constructor
constructor(private service: ILocalizationsService) {
this.onDidLanguagesChange = buffer(service.onDidLanguagesChange, true);
}
开发者ID:burhandodhy,项目名称:azuredatastudio,代码行数:3,代码来源:localizationsIpc.ts
示例4: constructor
constructor(private service: ILogService) {
this.onDidChangeLogLevel = buffer(service.onDidChangeLogLevel, true);
}
开发者ID:DonJayamanne,项目名称:vscode,代码行数:3,代码来源:logIpc.ts
示例5: listen
listen(event: string, arg?: any): Event<any> {
switch (event) {
case 'upload': return buffer(upload(URI.revive(arg)));
}
return undefined;
}
开发者ID:developers23,项目名称:vscode,代码行数:6,代码来源:downloadIpc.ts
示例6: constructor
constructor(private service: IRemoteAuthorityResolverService) {
this.onResolvingProgress = buffer(service.onResolvingProgress, true);
}
开发者ID:,项目名称:,代码行数:3,代码来源:
示例7: onResolvingProgress
get onResolvingProgress(): Event<IResolvingProgressEvent> { return buffer(this.channel.listen('onResolvingProgress'), true); }
开发者ID:,项目名称:,代码行数:1,代码来源:
注:本文中的vs/base/common/event.buffer函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论