network

package
v0.0.0-...-e7d174b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is_In_Block

func Is_In_Block(result extrinsic.ISubmittableResult) bool

Types

type Errors

type Errors struct{}

func (*Errors) TimeoutError

func (e *Errors) TimeoutError() error

type Promise

type Promise struct {
	Result interface{}
	Error  error
	Done   chan struct{}
}

func MakeSubscriptionPromise

func MakeSubscriptionPromise(terminationOptions SubscriptionOptions) (*Promise, func(interface{}))

func MakeSubscriptionPromiseMulti

func MakeSubscriptionPromiseMulti(args []SubscriptionOptions) ([]*Promise, func(interface{}))

func NewPromise

func NewPromise() *Promise

func (*Promise) Reject

func (p *Promise) Reject(err error)

func (*Promise) Resolve

func (p *Promise) Resolve(result interface{})

type SubscriptionOptions

type SubscriptionOptions struct {
	ResolveOn func(interface{}) bool
	RejectOn  func(interface{}) bool
	Timeout   time.Duration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL