nsmcp::ChatCompletionsBackend method streamClose (public)

 <instance of nsmcp::ChatCompletionsBackend[i]> streamClose key

Defined in /usr/local/ns/tcl/nsmcp/question-chat-completions.tcl

Release shared state for a completed or aborted stream. Remove the buffer entry under the mutex; tolerate a key already removed by cleanup.

Parameters:
key (required)
Retained stream or configuration key.
Returns:
The stream cleanup result.

Testcases:
No testcase defined.
Source code:
ns_mutex lock ${:mutex}
try {
    nsv_unset -nocomplain ${:streamStore} $key
} finally {
    ns_mutex unlock ${:mutex}
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: