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
Copy file name to clipboardExpand all lines: specification.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -404,7 +404,7 @@
404
404
{
405
405
"id": "Requirement 2.4.1",
406
406
"machine_id": "requirement_2_4_1",
407
-
"content": "The `provider` MAY define an `initialize` function which accepts the global `evaluation context` as an argument and performs initialization logic relevant to the provider.",
407
+
"content": "The `provider` MAY define an initialization function which accepts the global `evaluation context` as an argument and performs initialization logic relevant to the provider.",
> 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,11 +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 `initialization` function is an ideal place for such logic.
171
+
The initialization function is an ideal place for such logic.
172
172
173
173
```java
174
174
// MyProvider implementation of the initialize function defined in Provider
@@ -281,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
285
285
}
286
286
287
287
//...
@@ -290,4 +290,4 @@ class MyProvider implements Provider {
290
290
291
291
Providers may maintain remote connections, timers, threads or other constructs that need to be appropriately disposed of.
292
292
Provider authors may implement a `shutdown` function to perform relevant clean-up actions.
293
-
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