Virtual pin help

hey guys i have this code that usses dealy function and i don’t know about other functions. plz help me execute the same function but without delay function
BLYNK_WRITE(V1) {
if ( param.asInt() ) {
digitalWrite(18, HIGH);
delay(10);
servo.write(255);
delay(1500);
digitalWrite(18, LOW);
} else {
digitalWrite(18, HIGH);
delay(10);
servo.write(10);
delay(1500);
digitalWrite(18, LOW);
}
}

Here is example with timer https://github.com/blynkkk/blynk-library/blob/master/examples/GettingStarted/PushData/PushData.ino