README: the close() sentence split in two (closes #231) #232
@@ -1079,10 +1079,10 @@ cached, so the next fetch asks for it again. The reasons are kept in memory
|
|||||||
only.
|
only.
|
||||||
|
|
||||||
`lib.close()` stops the background timer. It can be called more than once. A
|
`lib.close()` stops the background timer. It can be called more than once. A
|
||||||
refresh in flight is left to finish, with its write to the cache. The promise
|
refresh in flight is left to finish, with its write to the cache. `close()`
|
||||||
`close()` returns resolves once that refresh, the machine-learning fetch and the
|
returns a promise. It resolves once that refresh, the machine-learning fetch and
|
||||||
background downloads already running have all finished. The cache directory can
|
the background downloads already running have all finished. The cache directory
|
||||||
then be removed. After `close()`, `fresh()`, `freshCollections()`,
|
can then be removed. After `close()`, `fresh()`, `freshCollections()`,
|
||||||
`freshFiles()` and `lib.backup()` reject with `the library is closed`.
|
`freshFiles()` and `lib.backup()` reject with `the library is closed`.
|
||||||
|
|
||||||
### Default reads and fresh reads
|
### Default reads and fresh reads
|
||||||
|
|||||||
Reference in New Issue
Block a user