Skip to content

Commit

Permalink
fixup: client shutdown
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
  • Loading branch information
toddbaert committed May 9, 2023
1 parent cf4932f commit b072502
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion specification.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,14 @@
{
"id": "Requirement 1.6.1",
"machine_id": "requirement_1_6_1",
"content": "The API MUST define a `shutdown` function, which, when called, must call the respective `shutdown` function on the active provider.",
"content": "The API MUST define a `shutdown` function which, when called, must call the respective `shutdown` function on the active provider.",
"RFC 2119 keyword": "MUST",
"children": []
},
{
"id": "Requirement 1.6.2",
"machine_id": "requirement_1_6_2",
"content": "The client MUST define a `shutdown` function which, when called, removes all the event handlers associated with that client.",
"RFC 2119 keyword": "MUST",
"children": []
},
Expand Down
9 changes: 8 additions & 1 deletion specification/sections/01-flag-evaluation.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,16 @@ See [hooks](./04-hooks.md) for details.

#### Requirement 1.6.1

> The API **MUST** define a `shutdown` function, which, when called, must call the respective `shutdown` function on the active provider.
> The API **MUST** define a `shutdown` function which, when called, must call the respective `shutdown` function on the active provider.
The precise name of this function is not prescribed by this specification, but should be defined be the SDK.
Relevant language idioms should be considered when choosing the name for this function, in accordance with the resource-disposal semantics of the language in question.

see: [`shutdown`](./02-providers.md#25-shutdown)

#### Requirement 1.6.2

> The client **MUST** define a `shutdown` function which, when called, removes all the event handlers associated with that client.
The precise name of this function is not prescribed by this specification, but should be defined be the SDK.
Relevant language idioms should be considered when choosing the name for this function, in accordance with the resource-disposal semantics of the language in question.

0 comments on commit b072502

Please sign in to comment.