-
Notifications
You must be signed in to change notification settings - Fork 656
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
Native: assume New Memory Manager #4287
Conversation
✅ Deploy Preview for apollo-android-docs canceled.
|
apollo-api/src/commonMain/kotlin/com/apollographql/apollo3/api/http/Http.kt
Show resolved
Hide resolved
...incubating/src/appleMain/kotlin/com/apollographql/apollo3/cache/normalized/internal/Guard.kt
Outdated
Show resolved
Hide resolved
apollo-runtime/src/appleMain/kotlin/com/apollographql/apollo3/internal/dispatchers.kt
Outdated
Show resolved
Hide resolved
apollo-runtime/src/appleMain/kotlin/com/apollographql/apollo3/internal/dispatchers.kt
Outdated
Show resolved
Hide resolved
...untime/src/appleMain/kotlin/com/apollographql/apollo3/network/http/NSURLSessionHttpEngine.kt
Show resolved
Hide resolved
apollo-runtime/src/commonMain/kotlin/com/apollographql/apollo3/internal/multipart.kt
Outdated
Show resolved
Hide resolved
...runtime/src/commonMain/kotlin/com/apollographql/apollo3/network/http/HttpNetworkTransport.kt
Show resolved
Hide resolved
apollo-testing-support/src/commonMain/kotlin/com/apollographql/apollo3/testing/runTest.kt
Show resolved
Hide resolved
apollo-runtime/src/appleMain/kotlin/com/apollographql/apollo3/internal/dispatchers.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool 🚀 . That's a very welcome change! I think we can even simplify a bit more. Let me know what you think!
apollo-mpp-utils/src/appleMain/kotlin/com/apollographql/apollo3/mpp/utils.kt
Show resolved
Hide resolved
apollo-api/src/commonMain/kotlin/com/apollographql/apollo3/api/http/Http.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
Something that just came to mind, we'll need to update https://github.com/apollographql/apollo-kotlin/blob/f890e3408d61acaa60aa5f6f2a3da93256bdf1ce/design-docs/Threading.md. Let me know if you want to do it. Or I can too. |
@martinbonnin I've just applied minor tweaks to Threading.md to remove / update obviously no longer correct or relevant bits. but it may benefit from a bigger revamp :) Don't hesitate to make more changes if you feel inspired! |
…t for background dispatchers - Remove suspendAndResumeOnMain, replaced with suspendCancellableCoroutine - Remove assertMainThreadOnNative
…/internal/multipart.kt Co-authored-by: Martin Bonnin <[email protected]>
…freeze, isFrozen, as no-ops to avoid a breaking change
…tore" This reverts commit 1de5b75.
…/http/Http.kt Co-authored-by: Martin Bonnin <[email protected]>
…guring the new MM
a4dfcfc
to
867522f
Compare
Assume running under the New Memory Manager (aka New Memory Model).
Related to #4100
newFixedThreadPoolContext
/newSingleThreadContext
freeze
and relatedrunTest
as deprecated