Skip to content

Commit

Permalink
feat(ES.FX.OneOf): add Value parameter to Deferred, Interrupted, and …
Browse files Browse the repository at this point in the history
…Unknown structs

- Added a Value parameter of type T to the Deferred<T>, Interrupted<T>, and Unknown<T> structs.
- This change allows these structs to hold a value of any given type.
  • Loading branch information
winromulus committed Oct 6, 2024
1 parent b28b609 commit 0c78799
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ES.FX.OneOf/Types/Deferred.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ namespace ES.FX.OneOf.Types;
public record struct Deferred;

[PublicAPI]
public record struct Deferred<T>;
public record struct Deferred<T>(T Value);
2 changes: 1 addition & 1 deletion src/ES.FX.OneOf/Types/Interrupted.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ namespace ES.FX.OneOf.Types;
public record struct Interrupted;

[PublicAPI]
public record struct Interrupted<T>;
public record struct Interrupted<T>(T Value);
2 changes: 1 addition & 1 deletion src/ES.FX.OneOf/Types/Unknown.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ namespace ES.FX.OneOf.Types;
public record struct Unknown;

[PublicAPI]
public record struct Unknown<T>;
public record struct Unknown<T>(T Value);

0 comments on commit 0c78799

Please sign in to comment.