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
If the provider you're looking for hasn't been created yet, see the [develop a provider](#develop-a-provider) section to learn how to build it yourself.
141
141
142
142
Once you've added a provider as a dependency, it can be registered with OpenFeature like this:
143
+
144
+
#### Synchronous
145
+
146
+
To register a provider in a blocking manner to ensure it is ready before further actions are taken, you can use the `setProviderAndWait` method as shown below:
147
+
148
+
```java
149
+
OpenFeatureAPI api =OpenFeatureAPI.getInstance();
150
+
api.setProviderAndWait(newMyProvider());
151
+
```
152
+
153
+
#### Asynchronous
154
+
155
+
To register a provider in a non-blocking manner, you can use the `setProvider` method as shown below:
Named providers can be set in a blocking or non-blocking way.
242
+
For more details, please refer to the [providers](#providers) section.
243
+
228
244
### Eventing
229
245
230
246
Events allow you to react to state changes in the provider or underlying flag management system, such as flag definition changes, provider readiness, or error conditions.
0 commit comments