Skip to content

Instantly share code, notes, and snippets.

@brunapereira
Created January 10, 2020 01:11
Show Gist options
  • Select an option

  • Save brunapereira/b555339c217b98309edda1692a21dd7f to your computer and use it in GitHub Desktop.

Select an option

Save brunapereira/b555339c217b98309edda1692a21dd7f to your computer and use it in GitHub Desktop.
@Service
class SampleService(private val ff4j: FF4j) {
fun callSampleService() {
if (ff4j.isEnabled("some-feature")) {
print("some-feature is enabled")
}
if (ff4j.isDisabled("other-feature")) {
print("other-feature is disabled")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment