MCPcopy Create free account
hub / github.com/Permify/permify / Close

Method Close

internal/engines/bulk.go:471–474  ·  view source on GitHub ↗

Close properly cleans up resources and cancels all operations. This method should be called when the BulkChecker is no longer needed to ensure proper resource cleanup and prevent goroutine leaks. Returns: - error: Any error that occurred during cleanup

()

Source from the content-addressed store, hash-verified

469// Returns:
470// - error: Any error that occurred during cleanup
471func (bc *BulkChecker) Close() error {
472 bc.cancel()
473 return nil
474}
475
476// BulkEntityPublisher handles entity-based permission check publishing.
477// This struct provides a convenient interface for publishing entity permission

Callers 10

LookupEntityMethod · 0.95
LookupEntityStreamMethod · 0.95
BenchmarkBulkCheckerFunction · 0.95
BenchmarkSortingFunction · 0.95
BenchmarkBurstRequestsFunction · 0.95
BenchmarkMixedWorkloadFunction · 0.95

Calls

no outgoing calls

Tested by 8

BenchmarkBulkCheckerFunction · 0.76
BenchmarkSortingFunction · 0.76
BenchmarkBurstRequestsFunction · 0.76
BenchmarkMixedWorkloadFunction · 0.76