Skip to content

Commit 62a5911

Browse files
committed
Add support for js targets
1 parent 51f74ce commit 62a5911

File tree

5 files changed

+2083
-9
lines changed

5 files changed

+2083
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ dependencies {
5555
### Usage
5656

5757
```kotlin
58-
coroutineScope.launch(Dispatchers.IO) {
58+
coroutineScope.launch(Dispatchers.Default) {
5959
// configure a provider, wait for it to complete its initialization tasks
6060
OpenFeatureAPI.setProviderAndWait(customProvider)
6161
val client = OpenFeatureAPI.getClient()
@@ -90,7 +90,7 @@ If the provider you're looking for hasn't been created yet, see the [develop a p
9090
Once you've added a provider as a dependency, it can be registered with OpenFeature like this:
9191

9292
```kotlin
93-
coroutineScope.launch(Dispatchers.IO) {
93+
coroutineScope.launch(Dispatchers.Default) {
9494
OpenFeatureAPI.setProviderAndWait(MyProvider())
9595
}
9696
```
@@ -195,7 +195,7 @@ viewModelScope.launch {
195195
viewModelScope.launch {
196196
OpenFeatureAPI.setProviderAndWait(
197197
MyFeatureProvider(),
198-
Dispatchers.IO,
198+
Dispatchers.Default,
199199
myEvaluationContext
200200
)
201201
}

0 commit comments

Comments
 (0)