Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add semaphore and illegal state exception to chat #21

Merged
merged 9 commits into from
Dec 19, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ import kotlinx.coroutines.flow.onEach
* Handles the capturing and storage of the communication with the model, providing methods for
* further interaction.
*
* Note: This object is not thread-safe, and calling [sendMessage] multiple times without waiting
* for a response will throw an [InvalidStateException]
davidmotson marked this conversation as resolved.
Show resolved Hide resolved
*
* @param model the model to use for the interaction
* @property history the previous interactions with the model
*/
Expand Down