mirror of
https://git.sr.ht/~phw/scotty
synced 2025-07-01 07:41:57 +02:00
Introduced Backend.Close method
This allows Backend implementations to free used resources. Currently used for musicbrainzws2.Client
This commit is contained in:
parent
c1a480a1a6
commit
499786cab9
14 changed files with 45 additions and 8 deletions
|
@ -35,6 +35,9 @@ type Backend interface {
|
|||
|
||||
// Return configuration options
|
||||
Options() []BackendOption
|
||||
|
||||
// Free all resources of the backend
|
||||
Close()
|
||||
}
|
||||
|
||||
type ImportBackend interface {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue