1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 12:37:58 +01:00

[core] Add javadoc to SmackReactor.cancel(ScheduledAction)

This commit is contained in:
Florian Schmaus 2020-05-16 14:16:05 +02:00
parent dfdd0acf91
commit 6daf19dbd3

View file

@ -154,6 +154,12 @@ public class SmackReactor {
return scheduledAction;
}
/**
* Cancels the scheduled action.
*
* @param scheduledAction the scheduled action to cancel.
* @return <code>true</code> if the scheduled action was still pending and got removed, <code>false</code> otherwise.
*/
boolean cancel(ScheduledAction scheduledAction) {
return scheduledActions.remove(scheduledAction);
}