register

open fun register(id: Any, futureResource: CompletableFuture<T>)

Registers a future to a resource by an id. If registering a resource that has already finished loading, use completedFuture.