File tree Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,8 @@ public class OpenFeatureAPI {
4040 Readiness can be determined from `getState` or listening for `ready` event.
4141 */
4242 public func setProvider( provider: FeatureProvider , initialContext: EvaluationContext ? ) {
43- stateQueue. async {
44- Task {
45- await self . setProviderInternal ( provider: provider, initialContext: initialContext)
46- }
43+ Task {
44+ await self . setProviderInternal ( provider: provider, initialContext: initialContext)
4745 }
4846 }
4947
@@ -52,14 +50,7 @@ public class OpenFeatureAPI {
5250 This async function returns when the `initialize` from the provider is completed.
5351 */
5452 public func setProviderAndWait( provider: FeatureProvider , initialContext: EvaluationContext ? ) async {
55- await withCheckedContinuation { continuation in
56- stateQueue. async {
57- Task {
58- await self . setProviderInternal ( provider: provider, initialContext: initialContext)
59- continuation. resume ( )
60- }
61- }
62- }
53+ await self . setProviderInternal ( provider: provider, initialContext: initialContext)
6354 }
6455
6556 /**
@@ -95,10 +86,8 @@ public class OpenFeatureAPI {
9586 Readiness can be determined from `getState` or listening for `contextChanged` event.
9687 */
9788 public func setEvaluationContext( evaluationContext: EvaluationContext ) {
98- stateQueue. async {
99- Task {
100- await self . updateContext ( evaluationContext: evaluationContext)
101- }
89+ Task {
90+ await self . updateContext ( evaluationContext: evaluationContext)
10291 }
10392 }
10493
You can’t perform that action at this time.
0 commit comments