crash.software
Projects
Pull Requests
Issues
Builds
termdash
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
termdash
Files
🤬
Sign In
9a82474a
ROOT
/
internal
/
event
/
event.go
Search
History
261 lines
|
ISO-8859-1
|
6 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
Callback
queue
Push
(e terminalapi.Event)
Pull
(ctx context.Context)
:
terminalapi.Event
Close
()
subscriber
cb
:
Callback
filter
:
map[reflect.Type]bool
queue
:
queue
cancel
:
context.CancelFunc
processed
:
int
mu
:
sync.Mutex
newSubscriber
(filter []terminalapi.Event, cb Callback, opts *subscribeOptions)
:
*subscriber
DistributionSystem
subscribers
:
map[int]*subscriber
nextID
:
int
mu
:
sync.Mutex
NewDistributionSystem
()
:
*DistributionSystem
StopFunc
SubscribeOption
set
(*subscribeOptions)
subscribeOptions
throttle
:
bool
maxRep
:
int
subscribeOption
set
(sOpts *subscribeOptions)
MaxRepetitive
(maxRep int)
:
SubscribeOption
*subscriber
callback
(ev terminalapi.Event)
run
(ctx context.Context)
event
(ev terminalapi.Event)
processedEvents
()
:
int
stop
()
*DistributionSystem
Event
(ev terminalapi.Event)
Subscribe
(filter []terminalapi.Event, cb Callback, opts ...SubscribeOption)
:
StopFunc
Processed
()
:
int
All occurrences
Please wait...
Page is in error, reload to recover