Skip to content

Commit d725f0d

Browse files
committed
add maxThreads param
1 parent 89e7256 commit d725f0d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

_articles/info/api/WebTwain_IO.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3820,6 +3820,7 @@ saveToLocalStorage(
38203820
settings:{
38213821
uid: string;
38223822
password?: string;
3823+
maxThreads?: number;
38233824
indices?: number[];
38243825
}
38253826
): Promise<string[]>;
@@ -3831,6 +3832,7 @@ saveToLocalStorage(
38313832

38323833
- `uid`: Specify the storage folder to save the images cache.
38333834
- `password`: The password of the specified storage folder.
3835+
- `maxThreads`: The maximum number of threads used for saving. You can set this to improve the speed. The default value is 1.
38343836
- `indices`: Specify the indices to save.
38353837
- If not set, means all images in buffer.
38363838
- If set to `[]`, all cache in the specified storage folder will be clear.
@@ -3887,6 +3889,7 @@ loadFromLocalStorage (
38873889
settings:{
38883890
uid: string;
38893891
password?:string;
3892+
maxThreads?: number;
38903893
}
38913894
): Promise<{oriImageId: string, newImageId: string}[]>;
38923895
```
@@ -3897,6 +3900,7 @@ loadFromLocalStorage (
38973900

38983901
- `uid`: Specify the storage folder to load the images.
38993902
- `password`: The password of the specified storage folder.
3903+
- `maxThreads`: The maximum number of threads used for loading. You can set this to improve the speed. The default value is 1.
39003904

39013905
**Return value**
39023906

0 commit comments

Comments
 (0)