Is this the correct way to return Unit from java c...
# getting-started
d
Is this the correct way to return Unit from java code?
Copy code
new Function0<Unit>() {
                    @Override
                    public Unit invoke() {
                        // do stuff                        
                        return Unit.INSTANCE;
                    }
                }