locking

package
v0.0.0-...-b45a7ae Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

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

func New

func New(taskExecutor func(task func())) *Executor

func (*Executor) Destroy

func (e *Executor) Destroy()

func (*Executor) ExecuteSynchronouslyWithCompleteLock

func (e *Executor) ExecuteSynchronouslyWithCompleteLock(f func())

func (*Executor) ExecuteSynchronouslyWithInstanceLock

func (e *Executor) ExecuteSynchronouslyWithInstanceLock(id int64, f func())

func (*Executor) SubmitWithCompleteLock

func (e *Executor) SubmitWithCompleteLock(f func())

func (*Executor) SubmitWithInstanceLock

func (e *Executor) SubmitWithInstanceLock(id int64, f func())

type Provider

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

func NewProvider

func NewProvider() *Provider

func (*Provider) Get

func (provider *Provider) Get(key string) entity.Executor

Jump to

Keyboard shortcuts

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