set Pattern
Set the current pattern for use during this task's execution.
Equivalent to setPatternFor(INFINITE_TIMEOUT, pattern).
Return
a task to set the pattern during the continuous execution of this task
Parameters
pattern
the pattern to set