DigitecGalaxus / DigitecGalaxus/Galaxus.Functional

Add async Option.MapOr and Or

Open
#38 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
41
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Would love to have async support for MapOr and Or on Option.

For async Pipelines sadly an unnecessary MapOr is needed if the fallback is async:
`await option.MapOr(v => Task.FromResult(v), fallback)`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Option implementations of MapOr and Or, then inspect how async pipelines currently use them. The issue asks for async support when the fallback is asynchronous, so done means callers no longer need an unnecessary MapOr before awaiting the fallback.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.