One button library help!

I downloaded the library.
http://www.mathertel.de/Arduino/OneButtonLibrary.aspx

I wnat make code like this.

When I double click button1, the function will be held Until one more Double click apply.
I am not competent enough to figure out how to do it.

This is the part of my code.

OneButton button1(A1, true);
int bToShow=1;



void setup() {
  button1.attachClick(myClickFunction1);
  button1.attachDoubleClick(doubleclick1);
  pinMode(11, OUTPUT);

}//void setup

void loop() {

  button1.tick(); //waiting for button1 input
}//void loop


void myClickFunction1() { //by clicking button1, this functions operates

  counter++; //by clicking button1, counter gets +1 
  if (counter>10) counter=1;
  function1(counter); // I already apply nine case of finction1. It works well.

} //void myClickFunction1


void doubleclick1() { //double click button1, function operates.

  int hold=counter;
  while(??){function1(hold);} // I don't know what to do from here

} // doubleclick1

I cannot know how to break “doubleclick1()” by one more double click.
Is there any right code replace “”??"" or do something?
Please help me.

When I double click button1, the function will be held Until one more Double click apply.

What function will be held? What does holding a function even mean?