async

package
v1.1.0-rc Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

This is auto generated code

This is auto generated code

This is auto generated code

This is auto generated code

This is auto generated code

This is auto generated code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventDKGResultSubmissionPromise

type EventDKGResultSubmissionPromise struct {
	// contains filtered or unexported fields
}

Promise represents an eventual completion of an ansynchronous operation and its resulting value. Promise can be either fulfilled or failed and it can happen only one time. All Promise operations are thread-safe.

To create a promise use: `&EventDKGResultSubmissionPromise{}`

func (*EventDKGResultSubmissionPromise) Fail

Fail can happen only once for a Promise and it results in calling the OnFailure callback, if registered. If Promise has been already completed by either fulfilling or failing, this function reports an error. Also, this function reports an error if `err` parameter is `nil`.

func (*EventDKGResultSubmissionPromise) Fulfill

Fulfill can happen only once for a Promise and it results in calling the OnSuccess callback, if registered. If Promise has been already completed by either fulfilling or failing, this function reports an error.

func (*EventDKGResultSubmissionPromise) OnComplete

OnComplete registers a function to be called when the Promise execution completed no matter if it succeded or failed. In case of a successful execution, error passed to the callback function is nil. In case of a failed execution, there is no value evaluated so the value parameter is nil. OnComplete is a non-blocking operation. Only one on complete function can be registered for a Promise. If the Promise has already completed, the function is called immediatelly.

func (*EventDKGResultSubmissionPromise) OnFailure

OnFailure registers a function to be called when the Promise execution failed. In case of a fulfilled Promise, function is not called at all. OnFailure is a non-blocking operation. Only one on failure function can be registered for a Promise. If the Promise has already failed, the function is called immediatelly.

func (*EventDKGResultSubmissionPromise) OnSuccess

OnSuccess registers a function to be called when the Promise has been fulfilled. In case of a failed Promise, function is not called at all. OnSuccess is a non-blocking operation. Only one on success function can be registered for a Promise. If the Promise has been already fulfilled, the function is called immediatelly.

type EventEntryGeneratedPromise

type EventEntryGeneratedPromise struct {
	// contains filtered or unexported fields
}

Promise represents an eventual completion of an ansynchronous operation and its resulting value. Promise can be either fulfilled or failed and it can happen only one time. All Promise operations are thread-safe.

To create a promise use: `&EventEntryGeneratedPromise{}`

func (*EventEntryGeneratedPromise) Fail

func (p *EventEntryGeneratedPromise) Fail(err error) error

Fail can happen only once for a Promise and it results in calling the OnFailure callback, if registered. If Promise has been already completed by either fulfilling or failing, this function reports an error. Also, this function reports an error if `err` parameter is `nil`.

func (*EventEntryGeneratedPromise) Fulfill

Fulfill can happen only once for a Promise and it results in calling the OnSuccess callback, if registered. If Promise has been already completed by either fulfilling or failing, this function reports an error.

func (*EventEntryGeneratedPromise) OnComplete

OnComplete registers a function to be called when the Promise execution completed no matter if it succeded or failed. In case of a successful execution, error passed to the callback function is nil. In case of a failed execution, there is no value evaluated so the value parameter is nil. OnComplete is a non-blocking operation. Only one on complete function can be registered for a Promise. If the Promise has already completed, the function is called immediatelly.

func (*EventEntryGeneratedPromise) OnFailure

func (p *EventEntryGeneratedPromise) OnFailure(onFailure func(error)) *EventEntryGeneratedPromise

OnFailure registers a function to be called when the Promise execution failed. In case of a fulfilled Promise, function is not called at all. OnFailure is a non-blocking operation. Only one on failure function can be registered for a Promise. If the Promise has already failed, the function is called immediatelly.

func (*EventEntryGeneratedPromise) OnSuccess

OnSuccess registers a function to be called when the Promise has been fulfilled. In case of a failed Promise, function is not called at all. OnSuccess is a non-blocking operation. Only one on success function can be registered for a Promise. If the Promise has been already fulfilled, the function is called immediatelly.

type EventEntrySubmittedPromise

type EventEntrySubmittedPromise struct {
	// contains filtered or unexported fields
}

Promise represents an eventual completion of an ansynchronous operation and its resulting value. Promise can be either fulfilled or failed and it can happen only one time. All Promise operations are thread-safe.

To create a promise use: `&EventEntrySubmittedPromise{}`

func (*EventEntrySubmittedPromise) Fail

func (p *EventEntrySubmittedPromise) Fail(err error) error

Fail can happen only once for a Promise and it results in calling the OnFailure callback, if registered. If Promise has been already completed by either fulfilling or failing, this function reports an error. Also, this function reports an error if `err` parameter is `nil`.

func (*EventEntrySubmittedPromise) Fulfill

Fulfill can happen only once for a Promise and it results in calling the OnSuccess callback, if registered. If Promise has been already completed by either fulfilling or failing, this function reports an error.

func (*EventEntrySubmittedPromise) OnComplete

OnComplete registers a function to be called when the Promise execution completed no matter if it succeded or failed. In case of a successful execution, error passed to the callback function is nil. In case of a failed execution, there is no value evaluated so the value parameter is nil. OnComplete is a non-blocking operation. Only one on complete function can be registered for a Promise. If the Promise has already completed, the function is called immediatelly.

func (*EventEntrySubmittedPromise) OnFailure

func (p *EventEntrySubmittedPromise) OnFailure(onFailure func(error)) *EventEntrySubmittedPromise

OnFailure registers a function to be called when the Promise execution failed. In case of a fulfilled Promise, function is not called at all. OnFailure is a non-blocking operation. Only one on failure function can be registered for a Promise. If the Promise has already failed, the function is called immediatelly.

func (*EventEntrySubmittedPromise) OnSuccess

OnSuccess registers a function to be called when the Promise has been fulfilled. In case of a failed Promise, function is not called at all. OnSuccess is a non-blocking operation. Only one on success function can be registered for a Promise. If the Promise has been already fulfilled, the function is called immediatelly.

type EventGroupRegistrationPromise

type EventGroupRegistrationPromise struct {
	// contains filtered or unexported fields
}

Promise represents an eventual completion of an ansynchronous operation and its resulting value. Promise can be either fulfilled or failed and it can happen only one time. All Promise operations are thread-safe.

To create a promise use: `&EventGroupRegistrationPromise{}`

func (*EventGroupRegistrationPromise) Fail

Fail can happen only once for a Promise and it results in calling the OnFailure callback, if registered. If Promise has been already completed by either fulfilling or failing, this function reports an error. Also, this function reports an error if `err` parameter is `nil`.

func (*EventGroupRegistrationPromise) Fulfill

Fulfill can happen only once for a Promise and it results in calling the OnSuccess callback, if registered. If Promise has been already completed by either fulfilling or failing, this function reports an error.

func (*EventGroupRegistrationPromise) OnComplete

OnComplete registers a function to be called when the Promise execution completed no matter if it succeded or failed. In case of a successful execution, error passed to the callback function is nil. In case of a failed execution, there is no value evaluated so the value parameter is nil. OnComplete is a non-blocking operation. Only one on complete function can be registered for a Promise. If the Promise has already completed, the function is called immediatelly.

func (*EventGroupRegistrationPromise) OnFailure

func (p *EventGroupRegistrationPromise) OnFailure(onFailure func(error)) *EventGroupRegistrationPromise

OnFailure registers a function to be called when the Promise execution failed. In case of a fulfilled Promise, function is not called at all. OnFailure is a non-blocking operation. Only one on failure function can be registered for a Promise. If the Promise has already failed, the function is called immediatelly.

func (*EventGroupRegistrationPromise) OnSuccess

OnSuccess registers a function to be called when the Promise has been fulfilled. In case of a failed Promise, function is not called at all. OnSuccess is a non-blocking operation. Only one on success function can be registered for a Promise. If the Promise has been already fulfilled, the function is called immediatelly.

type EventGroupTicketSubmissionPromise

type EventGroupTicketSubmissionPromise struct {
	// contains filtered or unexported fields
}

Promise represents an eventual completion of an ansynchronous operation and its resulting value. Promise can be either fulfilled or failed and it can happen only one time. All Promise operations are thread-safe.

To create a promise use: `&EventGroupTicketSubmissionPromise{}`

func (*EventGroupTicketSubmissionPromise) Fail

Fail can happen only once for a Promise and it results in calling the OnFailure callback, if registered. If Promise has been already completed by either fulfilling or failing, this function reports an error. Also, this function reports an error if `err` parameter is `nil`.

func (*EventGroupTicketSubmissionPromise) Fulfill

Fulfill can happen only once for a Promise and it results in calling the OnSuccess callback, if registered. If Promise has been already completed by either fulfilling or failing, this function reports an error.

func (*EventGroupTicketSubmissionPromise) OnComplete

OnComplete registers a function to be called when the Promise execution completed no matter if it succeded or failed. In case of a successful execution, error passed to the callback function is nil. In case of a failed execution, there is no value evaluated so the value parameter is nil. OnComplete is a non-blocking operation. Only one on complete function can be registered for a Promise. If the Promise has already completed, the function is called immediatelly.

func (*EventGroupTicketSubmissionPromise) OnFailure

OnFailure registers a function to be called when the Promise execution failed. In case of a fulfilled Promise, function is not called at all. OnFailure is a non-blocking operation. Only one on failure function can be registered for a Promise. If the Promise has already failed, the function is called immediatelly.

func (*EventGroupTicketSubmissionPromise) OnSuccess

OnSuccess registers a function to be called when the Promise has been fulfilled. In case of a failed Promise, function is not called at all. OnSuccess is a non-blocking operation. Only one on success function can be registered for a Promise. If the Promise has been already fulfilled, the function is called immediatelly.

type EventRequestPromise

type EventRequestPromise struct {
	// contains filtered or unexported fields
}

Promise represents an eventual completion of an ansynchronous operation and its resulting value. Promise can be either fulfilled or failed and it can happen only one time. All Promise operations are thread-safe.

To create a promise use: `&EventRequestPromise{}`

func (*EventRequestPromise) Fail

func (p *EventRequestPromise) Fail(err error) error

Fail can happen only once for a Promise and it results in calling the OnFailure callback, if registered. If Promise has been already completed by either fulfilling or failing, this function reports an error. Also, this function reports an error if `err` parameter is `nil`.

func (*EventRequestPromise) Fulfill

func (p *EventRequestPromise) Fulfill(value *event.Request) error

Fulfill can happen only once for a Promise and it results in calling the OnSuccess callback, if registered. If Promise has been already completed by either fulfilling or failing, this function reports an error.

func (*EventRequestPromise) OnComplete

func (p *EventRequestPromise) OnComplete(onComplete func(*event.Request, error)) *EventRequestPromise

OnComplete registers a function to be called when the Promise execution completed no matter if it succeded or failed. In case of a successful execution, error passed to the callback function is nil. In case of a failed execution, there is no value evaluated so the value parameter is nil. OnComplete is a non-blocking operation. Only one on complete function can be registered for a Promise. If the Promise has already completed, the function is called immediatelly.

func (*EventRequestPromise) OnFailure

func (p *EventRequestPromise) OnFailure(onFailure func(error)) *EventRequestPromise

OnFailure registers a function to be called when the Promise execution failed. In case of a fulfilled Promise, function is not called at all. OnFailure is a non-blocking operation. Only one on failure function can be registered for a Promise. If the Promise has already failed, the function is called immediatelly.

func (*EventRequestPromise) OnSuccess

func (p *EventRequestPromise) OnSuccess(onSuccess func(*event.Request)) *EventRequestPromise

OnSuccess registers a function to be called when the Promise has been fulfilled. In case of a failed Promise, function is not called at all. OnSuccess is a non-blocking operation. Only one on success function can be registered for a Promise. If the Promise has been already fulfilled, the function is called immediatelly.

Jump to

Keyboard shortcuts

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