共用方式為


AsyncLockOptions interface

描述可用來建立異步鎖定的選項。

屬性

domainReentrant

鎖定是否可以在相同的網域中重新輸入。 默認值為:false。

maxPending

暫止工作上限。 預設值為:1000。

Promise

您的承諾實作。 默認值為:全域承諾。

timeout

最大逾時。 默認值為:0(永不逾時)。

屬性詳細資料

domainReentrant

鎖定是否可以在相同的網域中重新輸入。 默認值為:false。

domainReentrant?: boolean

屬性值

boolean

maxPending

暫止工作上限。 預設值為:1000。

maxPending?: number

屬性值

number

Promise

您的承諾實作。 默認值為:全域承諾。

Promise?: any

屬性值

any

timeout

最大逾時。 默認值為:0(永不逾時)。

timeout?: number

屬性值

number