Commit Graph

41 Commits

Author SHA1 Message Date
Pete Walters
aa354d918b
Allow the non-throwing TaskQueue.run to throw a cancellation error 2026-04-21 08:39:45 -05:00
Max Radermacher
0758c26868
Structure concurrency for OWSUrlSession’s progress 2026-04-03 16:19:24 -05:00
Max Radermacher
edbd9c53d8
Add @safe annotation to TSMutex 2026-04-01 12:58:38 -05:00
Max Radermacher
9352f8f550
Remove unused DispatchMainThreadSafeObjc function 2026-01-14 16:08:04 -06:00
Sasha Weiss
21b205cc9b
Add BackoffStrategy to Retry, with case errorDependent(backoffBlock:) 2026-01-09 12:10:59 -08:00
Sasha Weiss
d267ec8305
Run swiftformat . 2025-12-30 11:34:05 -08:00
Max Radermacher
c9638ee6cc
Add mutual exclusion when sending to a recipient 2025-10-24 16:35:20 -05:00
Max Radermacher
a689aa21d6
Move around some files in SignalServiceKit 2025-09-15 15:24:13 -05:00
Sasha Weiss
0e8ffca7de
Durably update BackupSettings when BackupExportJobRunner finishes 2025-09-05 14:23:03 -07:00
Max Radermacher
7cb912cf36
Conform CancellableContinuation to Sendable 2025-07-23 16:50:20 -05:00
Max Radermacher
af6aaebb83
Ignore contact sync result when bg fetch times out 2025-07-23 13:25:44 -05:00
Sasha Weiss
73fd17e963
Use a TaskQueue instead of DebouncedTask in BackupDisablingManager 2025-07-22 09:24:54 -07:00
Sasha Weiss
b08a9f6a41
Rename AsyncAtomic -> SeriallyAccessedState 2025-07-21 17:52:50 -07:00
Sasha Weiss
69af4843ed
Add UX in BackupSettings for "Back Up Now" 2025-07-21 17:46:56 -07:00
Max Radermacher
94b697d8ae
Don’t connect concurrently in multiple processes 2025-07-21 13:08:48 -05:00
Sasha Weiss
9f6adb875e
Support cancellation in DebouncedTask 2025-07-16 16:47:09 -07:00
Sasha Weiss
b7df52ec77
Download offloaded attachments before disabling Backups 2025-07-14 10:32:33 -07:00
Sasha Weiss
4a3085adcb
Adapt BackupAttachmentUploadTracker to a non-reentrant AsyncAtomic 2025-07-01 13:56:32 -07:00
Harry
fe4b14e8ea
Use ConcurrentTaskQueue(concurrentLimit: 1) in place of SerialTaskQueue where possible 2025-06-26 15:23:13 -07:00
Max Radermacher
8eff4b74d2 Add DispatchQueue-backed Monitor functions 2025-06-26 12:53:10 -05:00
sashaweiss-signal
974b59eecd Use non-cancellable run method in AsyncAtomic 2025-06-25 16:27:52 -07:00
Sasha Weiss
45c70880bd
Add and use BackupSettingsAttachmentUploadTracker 2025-06-25 16:21:35 -07:00
Max Radermacher
f1225defa7
Add cancellation support to ConcurrentTaskQueue 2025-06-25 17:19:55 -05:00
Max Radermacher
34bd529af5
Add Monitor primitive helper methods 2025-06-13 20:09:23 -05:00
Max Radermacher
cb29b883f2
Add withCooperativeRace 2025-05-30 02:13:35 -05:00
Sasha Weiss
c5523905b4
Make disabling Backups durable 2025-05-21 23:36:53 -07:00
Max Radermacher
4dc6c9ff33
Update default value for maxAverageBackoff 2025-04-30 11:58:50 -05:00
Max Radermacher
f15537472d
Use clampedNanoseconds where it’s useful 2025-04-08 15:30:36 -05:00
Max Radermacher
eae33c823d
Use Retry.performWithBackoff for pre key rotations 2025-04-07 23:05:30 -05:00
Max Radermacher
9dea8d0893
Use Retry.performWithBackoff for GV2 requests 2025-04-04 17:44:22 -05:00
Max Radermacher
1a6a7ae223
Wait for profile names when showing notifications 2025-03-28 13:20:46 -05:00
Jordan Rose
97c18dfc02
CancellableContinuation internal improvements
- Make it a struct: Its state already has reference semantics, it doesn't need an extra layer. 
- Make the states explicit using an enum.
- Explicitly forbid calling wait more than once.
2025-03-14 09:35:09 -07:00
Max Radermacher
36d946d217
Fix withCooperativeTimeout cancellation handling 2025-03-06 23:26:43 -06:00
Ehren Kret
30aaca1d47 create an UncooperativeTimeout for async world as a migration assist from promises 2025-03-03 11:13:53 -06:00
Ehren Kret
0a5677997e
remove NSDate OWS objc category 2025-02-05 11:06:42 -06:00
Max Radermacher
fb7f51cae7
Cancel SerialTaskQueue tasks in reverse order 2025-01-23 08:19:45 -08:00
Max Radermacher
6f02723dbb
Use the web socket where easily possible 2025-01-21 12:26:39 -06:00
Max Radermacher
fb1fa3b1fb
Add jitter to exponential backoff 2024-12-18 13:57:42 -06:00
Max Radermacher
4cad31ca6a
Asyncify CDNDownloadOperation 2024-10-18 13:20:24 -05:00
Max Radermacher
07f3a0a2f7
Fix SerialTaskQueue 2024-10-18 02:46:11 -05:00
Max Radermacher
46a3e9c58a
Extract cooperative timeout & cancellation logic 2024-08-12 13:46:37 -05:00