Is there any way to get a delay in a function

thats the new question i posted

What work for me and my situation :+Create custom Method add inputs if need,=> Then Call your function => +add delay to it. Then Connect your custom Method where your function was.