package ʬ;

/* renamed from: ʬ.ᕣ  reason: contains not printable characters */
/* compiled from: TaskCompletionSource */
public class C0591<TResult> {

    /* renamed from: K  reason: contains not printable characters */
    public final C0595<TResult> f3541 = new C0595<>();

    /* renamed from: K  reason: contains not printable characters */
    public void m2021() {
        if (!this.f3541.m2033()) {
            throw new IllegalStateException("Cannot cancel a completed task.");
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m2023(TResult tresult) {
        if (!this.f3541.m2038((Object) tresult)) {
            throw new IllegalStateException("Cannot set the result of a completed task.");
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m2022(Exception exc) {
        if (!this.f3541.m2037(exc)) {
            throw new IllegalStateException("Cannot set the error on a completed task.");
        }
    }
}
