本文整理汇总了TypeScript中out/util/promise.executeFinally函数的典型用法代码示例。如果您正苦于以下问题:TypeScript executeFinally函数的具体用法?TypeScript executeFinally怎么用?TypeScript executeFinally使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了executeFinally函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: async
test.ifOsx("create keychain with installers", async () => {
const keychainName = generateKeychainName()
await executeFinally(createKeychain(keychainName, CSC_LINK, process.env.CSC_KEY_PASSWORD)
.then(result => {
assertThat(result.keychainName).not.empty()
}), () => all([deleteKeychain(keychainName)]))
})
示例2: async
test.ifOsx("create keychain with installers", async () => {
const keychainName = generateKeychainName()
await executeFinally(createKeychain(keychainName, CSC_LINK, CSC_KEY_PASSWORD, CSC_INSTALLER_LINK, CSC_INSTALLER_KEY_PASSWORD)
.then(result => {
assertThat(result.keychainName).not.empty()
assertThat(result.name).equal(CSC_NAME)
}), () => all([deleteKeychain(keychainName)]))
})