return statesg

This commit is contained in:
mudler
2024-04-01 22:50:11 +02:00
parent 7c679ead94
commit 8e3a1fcbe5
4 changed files with 50 additions and 26 deletions

View File

@@ -63,7 +63,7 @@ func New(opts ...Option) (*Agent, error) {
// Ask is a pre-emptive, blocking call that returns the response as soon as it's ready.
// It discards any other computation.
func (a *Agent) Ask(opts ...JobOption) []string {
func (a *Agent) Ask(opts ...JobOption) []ActionState {
//a.StopAction()
j := NewJob(opts...)
// fmt.Println("Job created", text)