IsExecuting retorna true se uma operação está em andamento
()
| 984 | |
| 985 | // IsExecuting retorna true se uma operação está em andamento |
| 986 | func (cli *ChatCLI) IsExecuting() bool { |
| 987 | return cli.isExecuting.Load() |
| 988 | } |
| 989 | |
| 990 | // CancelOperation cancela a operação atual se houver uma |
| 991 | func (cli *ChatCLI) CancelOperation() { |