Skip to content

Commit 3ac4476

Browse files
committed
Task active pattern should be internal
1 parent 1addfda commit 3ac4476

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/FSharpPlus/Extensions/Task.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module Task =
1414
open FSharpPlus.Internals.Errors
1515

1616
/// Active pattern to match the state of a completed Task
17-
let inline private (|Succeeded|Canceled|Faulted|) (t: Task<'a>) =
17+
let inline internal (|Succeeded|Canceled|Faulted|) (t: Task<'a>) =
1818
if t.IsFaulted then Faulted (Unchecked.nonNull (t.Exception))
1919
elif t.IsCanceled then Canceled
2020
elif t.IsCompleted then Succeeded t.Result

0 commit comments

Comments
 (0)