android-components / mozilla.components.service.fretboard / Fretboard / withExperiment

# withExperiment

`fun withExperiment(context: Context, descriptor: ExperimentDescriptor, block: (Experiment) -> Unit): Unit` (source)

Performs an action if the user is part of the specified experiment

### Parameters

`context` - context

`descriptor` - descriptor of the experiment to check

`block` - block of code to be executed if the user is part of the experiment