-
Notifications
You must be signed in to change notification settings - Fork 3
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
refactor!: Context APIs changes and documentation/onboarding #180
Conversation
6e17a84
to
e4b588a
Compare
ef29aa2
to
7d808f3
Compare
93211b7
to
fff6bd6
Compare
0a9657e
to
77f68a5
Compare
2b988a8
to
f88f8d9
Compare
f88f8d9
to
a4e3dd1
Compare
Sources/Confidence/Confidence.swift
Outdated
didSet { | ||
if let oldTask = oldValue { | ||
oldTask.cancel() | ||
} | ||
} |
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.
nice
a7ab0f3
to
d268518
Compare
/** | ||
Ensures all the already-started context changes prior to this function have been reconciliated | ||
*/ | ||
public func awaitReconciliation() async { |
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.
I would suggest awaitReady()
instead...
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.
I think we should keep the same name used in Kotlin, i.e. awaitReconciliation
I'd be happy to create a pair of "renaming PRs" for both repos after this though, if we want to reach proper alignment (this would make sense especially now that the APIs between platforms are much more similar!)
d268518
to
dedd011
Compare
dedd011
to
0c38b46
Compare
Breaking changes:
putContextAndWait
addedputContext
calls are executed in a serial fashion, and override existing calls for performanceputContext
triggersfetchAndActivate
directly, and not as a side-effectcontextChanges()
observable APIFixes and improvements:
Docs and onboarding: