how can we run task in one tick in unreal ?

spamming what input? users pressing keys? sending data over the internet? The words you are looking for then is “rate limiting”.

Usually such “spam” happens not in one tick, but many. as people running a project with 60 frames per second play with 60 ticks per second.

the timer suggested previously can be your solution to that, ignoring or combining input after initial input for X time.

In blueprints, you could just use a delay node, since that creates an async task that is not interrupted or restarted when called.

// C++ Timer snippet, can get creative with the handle too:



FTimerHandle OutTimerHandle = FTimerHandle();
if (!bDelimiterActive) {
	bDelimiterActive = true;
	
	GetWorldTimerManager().SetTimer(OutTimerHandle, FTimerDelegate::CreateLambda([] () {
		// DoStuff()
		bDelimiterActive = false;
	})
	, MyDelay, false);
}