| 891 | }; |
| 892 | loopWork.callback.bind<AsyncFileSystemOperation, &AsyncFileSystemOperation::onOperationCompleted>(*this); |
| 893 | return eventLoop.start(loopWork); |
| 894 | } |
| 895 | |
| 896 | SC::Result SC::AsyncFileSystemOperation::removeFile(AsyncEventLoop& eventLoop, StringSpan path) |
| 897 | { |
| 898 | SC_TRY(checkState()); |
| 899 | operation = Operation::RemoveFile; |
| 900 | new (&removeData, PlacementNew()) RemoveData({path}); |
| 901 | if (not eventLoop.needsThreadPoolForFileOperations() and threadPoolMode != AsyncThreadPoolMode::ForceThreadPool) |
| 902 | { |
| 903 | return eventLoop.start(*this); |
| 904 | } |
no test coverage detected