Files
rr3-apk/decompiled-community/sources/com/facebook/bolts/TaskCompletionSource.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

41 lines
1.1 KiB
Java

package com.facebook.bolts;
/* loaded from: classes2.dex */
public class TaskCompletionSource<TResult> {
private final Task<TResult> task = new Task<>();
public final Task<TResult> getTask() {
return this.task;
}
public final boolean trySetCancelled() {
return this.task.trySetCancelled();
}
public final boolean trySetResult(TResult tresult) {
return this.task.trySetResult(tresult);
}
public final boolean trySetError(Exception exc) {
return this.task.trySetError(exc);
}
public final void setCancelled() {
if (!trySetCancelled()) {
throw new IllegalStateException("Cannot cancel a completed task.".toString());
}
}
public final void setResult(TResult tresult) {
if (!trySetResult(tresult)) {
throw new IllegalStateException("Cannot set the result of a completed task.".toString());
}
}
public final void setError(Exception exc) {
if (!trySetError(exc)) {
throw new IllegalStateException("Cannot set the error on a completed task.".toString());
}
}
}