mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
[core] Add javadoc to SmackReactor.cancel(ScheduledAction)
This commit is contained in:
parent
dfdd0acf91
commit
6daf19dbd3
1 changed files with 6 additions and 0 deletions
|
@ -154,6 +154,12 @@ public class SmackReactor {
|
||||||
return scheduledAction;
|
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) {
|
boolean cancel(ScheduledAction scheduledAction) {
|
||||||
return scheduledActions.remove(scheduledAction);
|
return scheduledActions.remove(scheduledAction);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue