mu-index: add blocking start()

Useful for unit tests
This commit is contained in:
Dirk-Jan C. Binnema
2023-09-16 11:02:36 +03:00
parent c78dafd723
commit a2046dc2b1
3 changed files with 17 additions and 10 deletions

View File

@ -61,7 +61,7 @@ public:
/**
* Start indexing. If already underway, do nothing. This returns
* immediately after starting, with the work being done in the
* background.
* background, unless blocking = true
*
* @param conf a configuration object
*
@ -69,7 +69,7 @@ public:
* underway; false otherwise.
*
*/
bool start(const Config& conf);
bool start(const Config& conf, bool block=false);
/**
* Stop indexing. If not indexing, do nothing.