syncList

package
v0.0.0-...-41ddd9f Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncList

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

only be used in normal type or pointer[do not use SearchAndRemove in complex struct]

func New

func New() *SyncList

func (*SyncList) Back

func (sl *SyncList) Back() *list.Element

func (*SyncList) Front

func (sl *SyncList) Front() *list.Element

func (*SyncList) Len

func (sl *SyncList) Len() int

func (*SyncList) Lock

func (sl *SyncList) Lock()

func (*SyncList) PushBack

func (sl *SyncList) PushBack(v interface{}) *list.Element

func (*SyncList) Remove

func (sl *SyncList) Remove(element *list.Element) interface{}

func (*SyncList) SearchAndRemove

func (sl *SyncList) SearchAndRemove(v interface{})

CAN NOT BE USE IN List<contain> or List<map> or List<func> or List<Slice> search all the interface equal to v and delete them

func (*SyncList) Unlock

func (sl *SyncList) Unlock()

Jump to

Keyboard shortcuts

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