util

package
v0.0.0-...-9853328 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Promise

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

func NewPromise

func NewPromise() *Promise

func (*Promise) Load

func (p *Promise) Load(id int64) (any, bool)

func (*Promise) LoadWithTimeout

func (p *Promise) LoadWithTimeout(id int64, timeout time.Duration) (any, bool)

func (*Promise) NextID

func (p *Promise) NextID() int64

func (*Promise) Store

func (p *Promise) Store(id int64, v any)

type PromiseEvent

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

func PostPromiseEvent

func PostPromiseEvent(id int64, proto yocki.Protocal) PromiseEvent

func (PromiseEvent) Id

func (e PromiseEvent) Id() int64

func (PromiseEvent) Proto

func (e PromiseEvent) Proto() yocki.Protocal

Jump to

Keyboard shortcuts

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