MCPcopy Create free account
hub / github.com/M66B/FairEmail / acquire

Method acquire

app/src/main/java/eu/faircode/email/Core.java:5855–5862  ·  view source on GitHub ↗
(long milliseconds, boolean backingoff)

Source from the content-addressed store, hash-verified

5853 }
5854
5855 boolean acquire(long milliseconds, boolean backingoff) throws InterruptedException {
5856 try {
5857 this.backingoff = backingoff;
5858 return semaphore.tryAcquire(milliseconds, TimeUnit.MILLISECONDS);
5859 } finally {
5860 this.backingoff = false;
5861 }
5862 }
5863
5864 void error(Throwable ex) {
5865 if (ex instanceof MessagingException &&

Callers 15

doWorkMethod · 0.45
delegateMethod · 0.45
monitorAccountMethod · 0.45
notificationMethod · 0.45
folderCreatedMethod · 0.45
folderRenamedMethod · 0.45
folderDeletedMethod · 0.45
folderChangedMethod · 0.45
messagesAddedMethod · 0.45
messagesRemovedMethod · 0.45
messageChangedMethod · 0.45
runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected