mirror of
				https://github.com/oarkflow/mq.git
				synced 2025-10-30 23:36:20 +08:00 
			
		
		
		
	feat: add task completion
This commit is contained in:
		| @@ -19,6 +19,12 @@ func WithTaskTimeout(t time.Duration) PoolOption { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func WithCompletionCallback(callback func()) PoolOption { | ||||
| 	return func(p *Pool) { | ||||
| 		p.completionCallback = callback | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func WithMaxMemoryLoad(maxMemoryLoad int64) PoolOption { | ||||
| 	return func(p *Pool) { | ||||
| 		p.maxMemoryLoad = maxMemoryLoad | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sujit
					sujit