CloseEx provides more advanced closing options.
(options StoreCloseExOptions)
| 299 | |
| 300 | // CloseEx provides more advanced closing options. |
| 301 | func (s *Store) CloseEx(options StoreCloseExOptions) error { |
| 302 | if options.Abort { |
| 303 | close(s.abortCh) |
| 304 | } |
| 305 | return s.Close() |
| 306 | } |
| 307 | |
| 308 | // IsAborted returns whether the store operations are aborted. |
| 309 | func (s *Store) IsAborted() bool { |