diff options
author | Valery Piashchynski <[email protected]> | 2020-12-21 14:24:45 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-21 14:24:45 +0300 |
commit | 8543980775e5f8b12e5e200a0764052cdb4350a5 (patch) | |
tree | c1c6dff8e6bd81bcf51d608c5ed935702911ae81 /interfaces/pool/pool.go | |
parent | fd6e9cc403fc0c3857dcf29768429a374bd85636 (diff) | |
parent | 7b32b6b93576ec72b4b7fdf2068e655f869e9cf8 (diff) |
Merge pull request #453 from spiral/plugin/redis
Plugin/redis
Diffstat (limited to 'interfaces/pool/pool.go')
-rw-r--r-- | interfaces/pool/pool.go | 3 |
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. |