summaryrefslogtreecommitdiff
path: root/interfaces/pool/pool.go
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/pool/pool.go')
-rw-r--r--interfaces/pool/pool.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/interfaces/pool/pool.go b/interfaces/pool/pool.go
index 72da9597..22552388 100644
--- a/interfaces/pool/pool.go
+++ b/interfaces/pool/pool.go
@@ -18,9 +18,10 @@ type Pool interface {
// GetConfig returns pool configuration.
GetConfig() interface{}
- // Exec
+ // Exec executes task with payload
Exec(rqs payload.Payload) (payload.Payload, error)
+ // ExecWithContext executes task with context which is used with timeout
ExecWithContext(ctx context.Context, rqs payload.Payload) (payload.Payload, error)
// Workers returns worker list associated with the pool.