package pond

import (
	
)

type Option func(*pool)

// WithContext sets the context for the pool.
func ( context.Context) Option {
	return func( *pool) {
		.ctx = 
	}
}

// WithQueueSize sets the max number of elements that can be queued in the pool.
func ( int) Option {
	return func( *pool) {
		.queueSize = 
	}
}

// WithNonBlocking sets the pool to be non-blocking when the queue is full.
// This option is only effective when the queue size is set.
func ( bool) Option {
	return func( *pool) {
		.nonBlocking = 
	}
}

// WithoutPanicRecovery disables panic interception inside worker goroutines.
// When this option is enabled, panics inside tasks will propagate just like regular goroutines.
func () Option {
	return func( *pool) {
		.panicRecovery = false
	}
}