1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 06:22:55 +01:00

Add a tiny bit of javadoc

This commit is contained in:
cpfeiffer 2018-09-15 22:43:45 +02:00
parent f9e600d369
commit 87bee53ef3

View File

@ -68,6 +68,12 @@ public class TransactionBuilder {
return new NotifyAction(characteristic, enable);
}
/**
* Causes the queue to sleep for the specified time.
* Note that this is usually a bad idea, since it will not be able to process messages
* during that time. It is also likely to cause race conditions.
* @param millis the number of milliseconds to sleep
*/
public TransactionBuilder wait(int millis) {
WaitAction action = new WaitAction(millis);
return add(action);