Skip to content

Conversation

@bok-
Copy link
Contributor

@bok- bok- commented Dec 17, 2025

📒 Description

FlagWigwag is a way to get information about flags and to track changes to flags over time, eg:

let wigwag = flagPole.subgroup.$myFlag

The FlagWigwag has access be able to look up the current value as part of its internal workings, but if you wanted to get the current value you'd need to:

// Get it alongside the wigwag
let (value, wigwag) = (flagPole.subgroup.myFlag, flagPole.subgroup.$myFlag)

// Get it from a publisher or AsyncSequence
let value = wigwag.first() ?? wigwag.defaultValue
let value = await wigwag.first(where: { _ in true }) ?? wigwag.defaultValue

This PR adds a FlagWigwag.value getter to close this gap:

let wigwag = flagPole.subgroup.$myFlag
let value = wigwag.value

@bok- bok- added minor A minor change according to semver vexil3 Part of the Vexil 3 alpha/beta development labels Dec 17, 2025
@sonarqubecloud
Copy link

@bok- bok- merged commit e49d05b into main Dec 17, 2025
27 checks passed
@bok- bok- deleted the bok/flagwigwag.value branch December 17, 2025 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor A minor change according to semver vexil3 Part of the Vexil 3 alpha/beta development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants