com.statsig.ResourceCleaner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javacore Show documentation
Show all versions of javacore Show documentation
A feature gating and a/b testing java library for statsig
The newest version!
package com.statsig;
import java.lang.ref.Cleaner;
class ResourceCleaner {
private static final Cleaner cleaner = Cleaner.create();
static void register(Object object, Runnable cleanupTask) {
cleaner.register(object, cleanupTask);
}
}