| 197 | |
| 198 | template <typename T> |
| 199 | static T readSettingFromUiThread( |
| 200 | const std::string& setting, const T defaultValue) |
| 201 | { |
| 202 | std::function<T()> cb = [&]() |
| 203 | { |
| 204 | return readSetting<T>(setting, defaultValue); |
| 205 | }; |
| 206 | return wtRunSynchronouslyOnUiThread(cb); |
| 207 | } |
| 208 | |
| 209 | void Datastore::init() |
| 210 | { |
nothing calls this directly
no test coverage detected