Menu
COMITDeveloper HubBlog
Versions
  • v0.15.2
  • v0.14.1
  • v0.13.0
GitHub
COMITDeveloper Hub
  • Blog
  • Versions
    • v0.15.2
    • v0.14.1
    • v0.13.0
  • GitHub
  • Getting Started
    • Create-comit-app
  • COMIT Protocol
    • COMIT protocol stack
    • COMIT projects
  • Core Concepts
    • Atomic Swaps using HTLCs
    • Instant Swaps
    • Privacy Preserving Swaps
    • Negotiation vs. Execution
  • COMIT Javascript SDK
    • README
    • Modules
      • actor
      • cnd/action_to_http_request
      • cnd/axios_rfc7807_middleware
      • cnd/cnd
      • cnd/siren
      • comit_client
      • lnd
      • negotiation/execution_params
      • negotiation/maker/maker_negotiator
      • negotiation/maker/swap_order_matching
      • negotiation/order
      • negotiation/taker/maker_client
      • negotiation/taker/order
      • negotiation/taker/taker_negotiator
      • swap
      • tokens/definitions
      • tokens/tokens
      • transaction
      • util/timeout_promise
      • wallet/bitcoin
      • wallet/ethereum
      • wallet/lightning
    • Interfaces
      • Actor
      • ProblemMembers
      • AlphaHalightAdditionalRequestBody
      • AlphaHanAdditionalRequestBody
      • AlphaHerc20AdditionalRequestBody
      • Asset
      • BetaHalightAdditionalRequestBody
      • BetaHanAdditionalRequestBody
      • BetaHerc20AdditionalRequestBody
      • BitcoinBroadcastSignedTransactionPayload
      • BitcoinSendAmountToAddressPayload
      • CoreRequestBody
      • EthereumCallContractPayload
      • EthereumDeployContractPayload
      • GetInfo
      • Ledger
      • LndAddHoldInvoicePayload
      • LndSendPaymentPayload
      • LndSettleInvoicePayload
      • Peer
      • SwapDetails
      • SwapProperties
      • SwapRequest
      • SwapSubEntity
      • Action
      • EmbeddedLinkSubEntity
      • Entity
      • Field
      • FieldValueObject
      • Link
      • ExecutionParams
      • LedgerParams
      • Order
      • OrderAsset
      • MatchingCriteria
      • MatchingCriteriaAsset
      • Token
      • TryParams
      • BitcoinWallet
      • Outpoint
    • Classes
      • Problem
      • Cnd
      • ComitClient
      • Lnd
      • HttpService
      • MakerNegotiator
      • MakerClient
      • Order
      • TakerNegotiator
      • Swap
      • WalletError
      • Transaction
      • InMemoryBitcoinWallet
      • EthereumWallet
      • LightningWallet
    • Enums
      • NetworkType
      • SwapTransactionStatus
Version: 0.14.1

util/timeout_promise

#Index

#Interfaces

  • TryParams

#Functions

  • sleep
  • timeoutPromise

#Functions

#sleep

▸ sleep(ms: number): Promise‹void›

Defined in src/util/timeout_promise.ts:23

Parameters:

NameType
msnumber

Returns: Promise‹void›


#timeoutPromise

▸ timeoutPromise<T>(ms: number, promise: Promise‹T›): Promise‹T›

Defined in src/util/timeout_promise.ts:9

Type parameters:

▪ T

Parameters:

NameType
msnumber
promisePromise‹T›

Returns: Promise‹T›

Edit this page
Previous
« transaction
Next
wallet/bitcoin »
  • Index
    • Interfaces
    • Functions
  • Functions
    • sleep
    • timeoutPromise

Community

  • Matrix
Copyright © 2022 CoBloX