Version Matrix

Launch4s

A Cats-friendly Scala wrapper around the LaunchDarkly Java SDK

Usage

The API largely mirrors the Java SDK's API, however there are small deviations in places. For full details consult the Scaladoc.

Example

import launch4s.LaunchDarklyClient
import com.launchdarkly.sdk.LDUser

LaunchDarklyClient.resource[F]("sdkkey", blocker).use { ldClient =>
    val flagValue: F[Boolean] = ldClient.boolVariation("myflagkey", new LDUser(), false)
}