keyKicker

keyKicker ( object key ) : boolean

Avoid to make at the same time the same action in 2 threads. Example: to not create twice a product, do :

if(!keyKicker(reference))
{
....
}


If this action is in progress in another thread the function "kick" you. You not enter in the if and the script finish.

See also

synchronize

Parameters

key

Key which identify the action (ex: the product reference)