Documentation ¶
Index ¶
- type Result
- type Single
- func (s *Single[M]) Do(fn func() (M, error)) (v M, shared bool, err error)
- func (s *Single[M]) DoFast(fn func() (M, error)) (v M, err error)
- func (s *Single[M]) DoWithoutCacheOnFail(fn func() (M, error)) (v M, shared bool, err error)
- func (s *Single[M]) MustDoWithoutCacheOnFail(fn func() (M, error)) (v M, shared bool, err error)
- func (s *Single[M]) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Single ¶
type Single[M any] struct { // contains filtered or unexported fields }
func (*Single[M]) DoWithoutCacheOnFail ¶
func (*Single[M]) MustDoWithoutCacheOnFail ¶
Click to show internal directories.
Click to hide internal directories.