mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-24 15:00:25 +02:00
updated code comments and added some notes
This commit is contained in:
1 parent
a7bb599cd0
commit
c0a6a21b9e
7 files changed
+110
-103
No files matched your search
@@ -57,6 +57,7 @@ func (h *Hook[T]) Add(fn Handler[T]) string {
|
||||
return id
|
||||
}
|
||||
|
||||
// @todo add also to TaggedHook
|
||||
// Remove removes a single hook handler by its id.
|
||||
func (h *Hook[T]) Remove(id string) {
|
||||
h.mux.Lock()
|
||||
@@ -70,6 +71,7 @@ func (h *Hook[T]) Remove(id string) {
|
||||
}
|
||||
}
|
||||
|
||||
// @todo add also to TaggedHook
|
||||
// RemoveAll removes all registered handlers.
|
||||
func (h *Hook[T]) RemoveAll() {
|
||||
h.mux.Lock()
|
||||
|
||||
Reference in new issue
Block a user