You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// - "decideSync" methods skip async decision like cmab for backward compatibility.
90
+
// ===========================================
91
+
87
92
/**
88
93
* Returns a decision result ({@link OptimizelyDecision}) for a given flag key and a user context, which contains all data required to deliver the flag.
89
94
* <ul>
@@ -183,7 +188,7 @@ public Map<String, OptimizelyDecision> decideAll() {
183
188
}
184
189
185
190
// ===========================================
186
-
// Async Methods (Android-specific) with callbacks
191
+
// [ASYNCHRONOUS DECIDE METHODS WITH CALLBACKS]
187
192
// ===========================================
188
193
189
194
/**
@@ -253,7 +258,9 @@ public void decideAllAsync(@NonNull OptimizelyDecisionsCallback callback) {
253
258
}
254
259
255
260
// ===========================================
256
-
// Async Methods (Android-specific) with blocking calls to synchronous methods
261
+
// [ASYNCHRONOUS DECIDE METHODS WITH BLOCKING CALLS]
262
+
// - This will block the calling thread until a decision is returned.
263
+
// - So this should be called in background thread only.
257
264
// ===========================================
258
265
259
266
/**
@@ -267,7 +274,7 @@ public void decideAllAsync(@NonNull OptimizelyDecisionsCallback callback) {
0 commit comments