MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Exit

Method Exit

IceFireDB-SQLite/pkg/p2p/pubsub.go:206–213  ·  view source on GitHub ↗

A method of PubSub that updates the chat room by subscribing to the new topic

()

Source from the content-addressed store, hash-verified

204// A method of PubSub that updates the chat
205// room by subscribing to the new topic
206func (cr *PubSub) Exit() {
207 defer cr.pscancel()
208
209 // Cancel the existing subscription
210 cr.psub.Cancel()
211 // Close the topic handler
212 cr.pstopic.Close()
213}
214
215// A method of PubSub that updates the chat user name
216func (cr *PubSub) UpdateUser(username string) {

Callers 4

confInitFunction · 0.45
exitSignalFunction · 0.45
mainFunction · 0.45
startFunction · 0.45

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected