util

package
v0.0.0-...-14bd45b Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenPersistantID

func GenPersistantID(section int32) int64

生成可持久化的ID

Types

type Delegate

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

类似于C#的Action, 一种delegate

func (*Delegate) Add

func (self *Delegate) Add(callback func(...interface{}) error) *list.Element

func (*Delegate) Clear

func (self *Delegate) Clear()

func (*Delegate) Invoke

func (self *Delegate) Invoke(args ...interface{}) error

func (*Delegate) Remove

func (self *Delegate) Remove(element *list.Element)

type Future

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

func NewFuture

func NewFuture() *Future

func (*Future) Done

func (self *Future) Done(r Value)

func (*Future) Get

func (self *Future) Get() Value

type Value

type Value interface{}

Jump to

Keyboard shortcuts

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