public class

FutureValues.BlockingCallback<T>

extends FutureValues.SimpleCallback<java.lang.Object>

 java.lang.Object

androidx.pdf.data.FutureValues.SimpleCallback<java.lang.Object>

↳androidx.pdf.data.FutureValues.BlockingCallback<T>

Overview

Allows for a blocking get.

Useful for when waiting for an execution to complete.

Summary

Constructors
publicBlockingCallback()

Methods
public voidavailable(java.lang.Object value)

public voidfailed(java.lang.Throwable thrown)

public java.lang.ObjectgetBlocking()

Acquires semaphore until data comes through callback.

from FutureValues.SimpleCallback<T>progress, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructors

public BlockingCallback()

Methods

public void available(java.lang.Object value)

public void failed(java.lang.Throwable thrown)

public java.lang.Object getBlocking()

Acquires semaphore until data comes through callback.