*******************************************************************************/
package org.simantics.db.common.provider;
+import java.util.function.Consumer;
+
import org.simantics.db.AsyncReadGraph;
import org.simantics.db.ReadGraph;
import org.simantics.db.Resource;
-import org.simantics.utils.datastructures.Callback;
/**
* An interface for externalizing the logic of retrieving an arbitrary resource
* @param graph an asynchronous graph for retrieving the resource to return
* @param callback a callback that is invoked with the provided resource
*/
- void get(AsyncReadGraph graph, Callback<Resource> callback);
+ void get(AsyncReadGraph graph, Consumer<Resource> callback);
}