-
-
Notifications
You must be signed in to change notification settings - Fork 364
chore: dispatchAsyncOnMainQueue
to dispatchAsyncOnMainQueueIfNotMainThread
#6132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
chore: dispatchAsyncOnMainQueue
to dispatchAsyncOnMainQueueIfNotMainThread
#6132
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6132 +/- ##
========================================
Coverage ? 86.686%
========================================
Files ? 435
Lines ? 37074
Branches ? 17398
========================================
Hits ? 32138
Misses ? 4891
Partials ? 45
Continue to review full report in Codecov by Sentry.
|
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
fd5961e | 1210.59 ms | 1235.57 ms | 24.98 ms |
f5d202b | 1237.90 ms | 1259.49 ms | 21.59 ms |
718c372 | 1220.09 ms | 1235.15 ms | 15.06 ms |
52f3b6e | 1219.57 ms | 1239.70 ms | 20.13 ms |
37183fe | 1212.33 ms | 1238.92 ms | 26.59 ms |
d66f082 | 1227.08 ms | 1247.04 ms | 19.96 ms |
1b9991e | 1233.45 ms | 1256.61 ms | 23.17 ms |
9be5373 | 1215.92 ms | 1239.44 ms | 23.52 ms |
87fb58a | 1233.12 ms | 1257.17 ms | 24.04 ms |
5196f0d | 1213.35 ms | 1231.37 ms | 18.02 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
fd5961e | 23.74 KiB | 874.07 KiB | 850.32 KiB |
f5d202b | 23.75 KiB | 904.53 KiB | 880.78 KiB |
718c372 | 23.75 KiB | 920.65 KiB | 896.90 KiB |
52f3b6e | 23.75 KiB | 920.54 KiB | 896.79 KiB |
37183fe | 23.75 KiB | 913.63 KiB | 889.87 KiB |
d66f082 | 23.75 KiB | 928.85 KiB | 905.10 KiB |
1b9991e | 23.75 KiB | 908.01 KiB | 884.26 KiB |
9be5373 | 23.75 KiB | 866.50 KiB | 842.75 KiB |
87fb58a | 23.75 KiB | 919.91 KiB | 896.16 KiB |
5196f0d | 23.75 KiB | 876.93 KiB | 853.19 KiB |
Previous results on branch: itay/cocoa-636-_sentrydispatchqueuewrapperinternaldispatchasynconmainqueue
Startup times
Revision | Plain | With Sentry | Diff |
---|---|---|---|
25c4ec8 | 1228.96 ms | 1242.88 ms | 13.92 ms |
248b305 | 1229.43 ms | 1254.06 ms | 24.64 ms |
27a306a | 1234.22 ms | 1263.45 ms | 29.22 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
25c4ec8 | 23.75 KiB | 969.21 KiB | 945.46 KiB |
248b305 | 23.75 KiB | 969.26 KiB | 945.51 KiB |
27a306a | 23.75 KiB | 969.99 KiB | 946.24 KiB |
Looks like there are several places relying on the previous behavior, I will rename the method and create a new one then |
…lect the behavior
…coa-636-_sentrydispatchqueuewrapperinternaldispatchasynconmainqueue
dispatchAsyncOnMainQueue
to dispatchAsyncOnMainQueueIfNotMainThread
…coa-636-_sentrydispatchqueuewrapperinternaldispatchasynconmainqueue
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
Fixes: #6129
When
dispatchAsyncOnMainQueue
is called from the main thread, the block ends up being executed immediately instead of async. I am renaming the method to make the behavior clearer#skip-changelog