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
> The `provider`**SHOULD** populate the `resolution details` structure's `flag metadata` field.
124
+
> The `provider`**SHOULD** populate the `resolution details` structure's `flag metadata` field.
125
125
126
126
##### Requirement 2.2.10
127
127
@@ -164,12 +164,11 @@ class MyProvider implements Provider {
164
164
165
165
#### Requirement 2.4.1
166
166
167
-
> The `provider`**MAY** define an `initialize` function which accepts the global `evaluation context` as an argument and performs initialization logic relevant to the provider.
167
+
> The `provider`**MAY** define an initialization function which accepts the global `evaluation context` as an argument and performs initialization logic relevant to the provider.
168
168
169
169
Many feature flag frameworks or SDKs require some initialization before they can be used.
170
170
They might require the completion of an HTTP request, establishing persistent connections, or starting timers or worker threads.
171
-
The `initialize` function is an ideal place for such logic.
172
-
The `initialize` function is named in accordance with language idioms.
171
+
The initialization function is an ideal place for such logic.
173
172
174
173
```java
175
174
// MyProvider implementation of the initialize function defined in Provider
@@ -282,7 +281,7 @@ class MyProvider implements Provider {
// update context-sensitive cached flags, or otherwise react to the change in the global context
284
+
// update context-sensitive cached flags, or otherwise react to the change in the global context
286
285
}
287
286
288
287
//...
@@ -291,4 +290,4 @@ class MyProvider implements Provider {
291
290
292
291
Providers may maintain remote connections, timers, threads or other constructs that need to be appropriately disposed of.
293
292
Provider authors may implement a `shutdown` function to perform relevant clean-up actions.
294
-
Alternatively, implementations might leverage language idioms such as auto-disposable interfaces or some means of cancellation signal propagation to allow for graceful shutdown.
293
+
Alternatively, implementations might leverage language idioms such as auto-disposable interfaces or some means of cancellation signal propagation to allow for graceful shutdown.
0 commit comments