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
    • Run a frist demo
    • Development Setup
    • Your first COMIT-app
      • Project Setup
      • Actor Initialisation
      • Maker - Order Service
      • Maker - Publish Order
      • Maker - Swap Execution
      • Taker - Request Order
      • Taker - Swap 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
    • Classes
      • Problem
      • Cnd
      • ComitClient
      • Lnd
      • HttpService
      • MakerNegotiator
      • MakerClient
      • Order
      • TakerNegotiator
      • Swap
      • WalletError
      • Transaction
      • InMemoryBitcoinWallet
      • EthereumWallet
      • LightningWallet
    • Interfaces
      • Actor
      • ProblemMembers
      • Asset
      • Bitcoin
      • BitcoinBroadcastSignedTransactionPayload
      • BitcoinSendAmountToAddressPayload
      • CoreRequestBody
      • Ethereum
      • EthereumCallContractPayload
      • EthereumDeployContractPayload
      • GetInfo
      • Halight
      • Han
      • Herc20
      • Ledger
      • LndAddHoldInvoicePayload
      • LndSendPaymentPayload
      • LndSettleInvoicePayload
      • Peer
      • RequestParams
      • SwapDetails
      • SwapProperties
      • SwapRequest
      • SwapSubEntity
      • Action
      • EmbeddedLinkSubEntity
      • Entity
      • Field
      • FieldValueObject
      • Link
      • ExecutionParams
      • LedgerParams
      • Order
      • OrderAsset
      • MatchingCriteria
      • MatchingCriteriaAsset
      • Token
      • TryParams
      • BitcoinWallet
      • Outpoint
    • Enums
      • NetworkType
      • TransactionStatus
  • COMIT Protocol
    • COMIT protocol stack
    • COMIT projects
    • Core Concepts
      • Atomic Swaps using HTLCs
      • Instant Swaps
      • Privacy Preserving Swaps
      • Negotiation vs. Execution
Version: 0.15.2

util/timeout_promise

#Index

#Interfaces

  • TryParams

#Functions

  • sleep
  • timeoutPromise

#Functions

#sleep

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

Defined in src/util/timeout_promise.ts:28

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