restartWatch should only ever be called synchronously. If you want to use this asynchronously, you should probably use scheduleWatchRestart instead.
(ctx context.Context)
| 1035 | // restartWatch should only ever be called synchronously. If you want to use |
| 1036 | // this asynchronously, you should probably use scheduleWatchRestart instead. |
| 1037 | func (f *folder) restartWatch(ctx context.Context) error { |
| 1038 | f.stopWatch() |
| 1039 | f.startWatch(ctx) |
| 1040 | return f.scanSubdirs(ctx, nil) |
| 1041 | } |
| 1042 | |
| 1043 | // startWatch should only ever be called synchronously. If you want to use |
| 1044 | // this asynchronously, you should probably use scheduleWatchRestart instead. |
no test coverage detected