本文整理汇总了TypeScript中vs/base/common/async.nfcall函数的典型用法代码示例。如果您正苦于以下问题:TypeScript nfcall函数的具体用法?TypeScript nfcall怎么用?TypeScript nfcall使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了nfcall函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: move
export function move(oldPath: string, newPath: string): Promise<void> {
return nfcall(extfs.mv, oldPath, newPath);
}
示例2: utimes
export function utimes(path: string, atime: Date, mtime: Date): TPromise<void> {
return nfcall(fs.utimes, path, atime, mtime);
}
示例3: lstat
export function lstat(path: string): Promise<fs.Stats> {
return nfcall(fs.lstat, path);
}
示例4: truncate
export function truncate(path: string, len: number): TPromise<void> {
return nfcall(fs.truncate, path, len);
}
示例5: ensureWriteFileQueue
return ensureWriteFileQueue(queueKey).queue(() => nfcall(extfs.writeFileAndFlush, path, data, options));
示例6: unlink
export function unlink(path: string): Promise<void> {
return nfcall(fs.unlink, path);
}
示例7: readlink
export function readlink(path: string): TPromise<string> {
return nfcall<string>(fs.readlink, path);
}
示例8: writeFileAndFlush
export function writeFileAndFlush(path: string, data: any, encoding: string = 'utf8'): TPromise<void> {
return nfcall(extfs.writeFileAndFlush, path, data, encoding);
}
示例9: realpath
export function realpath(path: string): TPromise<string> {
return nfcall(fs.realpath, path, null);
}
示例10: writeFile
export function writeFile(path: string, data: any, encoding: string = 'utf8'): Promise {
return nfcall(fs.writeFile, path, data, encoding);
}