Commit ea30adf
committed
feat: Catch callback exception in callForSeenUsers
In case of large instances, `callForSeenUsers()` can take a lot of time to finish.
The new arguments give the opportunity for the caller to set a time limit, and to start from a given offset. The method now also returns the offset if it was stopped early.
Signed-off-by: Louis Chemineau <louis@chmn.me>1 parent ee9ead4 commit ea30adf
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
640 | | - | |
641 | | - | |
642 | | - | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
643 | 647 | | |
644 | 648 | | |
645 | 649 | | |
| |||
0 commit comments