X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.common%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fcommon%2Fprovider%2FAsyncResourceProvider.java;h=7db748a3e274d28316732d0bc216c5a36b4abf88;hb=627664d06302d454ea3b3fe14d13bb5ab739d666;hp=2cb5a35759b1a8e5330be6e5965d4777c6410890;hpb=eae2657463e387cb764e7e5780d5c56f5311c0af;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db.common/src/org/simantics/db/common/provider/AsyncResourceProvider.java b/bundles/org.simantics.db.common/src/org/simantics/db/common/provider/AsyncResourceProvider.java index 2cb5a3575..7db748a3e 100644 --- a/bundles/org.simantics.db.common/src/org/simantics/db/common/provider/AsyncResourceProvider.java +++ b/bundles/org.simantics.db.common/src/org/simantics/db/common/provider/AsyncResourceProvider.java @@ -11,10 +11,11 @@ *******************************************************************************/ 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 @@ -40,6 +41,6 @@ public interface AsyncResourceProvider { * @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 callback); + void get(AsyncReadGraph graph, Consumer callback); }