// NewQueueWithSpinner allows to set the spinning priority of the queue to
// be created.
NewQueueWithSpinner allows to set the spinning priority of the queue to
be created.
// NewQueueWithSpinner allows to set the spinning priority of the queue to // be created .
func NewQueueWithSpinner(capacity uint32, spinner Spinner) Queue {
	return Queue{
		items:    make([]interface{}, capacity),
		read:     newQueueAccess(),
		write:    newQueueAccess(),
		locked:   new(int32),
		capacity: uint64(capacity),
		spin:     spinner,
	}
}
func NewQueueWithSpinner ( capacity uint32 , spinner Spinner ) Queue { return Queue { items : make ( [ ] interface { } , capacity ) , read : newQueueAccess ( ) , write : newQueueAccess ( ) , locked : new ( int32 ) , capacity : uint64 ( capacity ) , spin : spinner , } }
NewQueueWithSpinner allows to set the spinning priority of the queue to
be created.
NewQueueWithSpinner allows to set the spinning priority of the queue to be created .