Skip to content

Commit

Permalink
Update release-notes.txt with these minor deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
abelbraaksma committed Nov 5, 2023
1 parent b6fb417 commit 4ce79ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions release-notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
Release notes:
0.4.x (unreleased)
- overhaul all doc comments, add exceptions, improve editor experience, #136
- DEPRECATED: 'taskSeq<_>' renamed to 'TaskSeq<_>', 'taskSeq' warns with FS0044, #187
- BINARY INCOMPATIBILITY: 'TaskSeq' module is now static members on 'TaskSeq<_>', fixes #184
- Performance: less thread hops with 'StartImmediateAsTask' instead of 'StartAsTask', fixes #135
- BINARY INCOMPATIBILITY: 'TaskSeq' module is now static members on 'TaskSeq<_>', fixes #184
- DEPRECATIONS (these raise warning FS0044):
- type 'taskSeq<_>' is renamed to 'TaskSeq<_>', fixes #193
- function 'ValueTask.ofIValueTaskSource` renamed to `ValueTask.ofSource`, fixes #193
- function `ValueTask.FromResult` is renamed to `ValueTask.fromResult`, fixes #193

0.4.0-alpha.1
- fixes not calling Dispose for 'use!', 'use', or `finally` blocks #157 (by @bartelink)
Expand Down
4 changes: 2 additions & 2 deletions src/FSharp.Control.TaskSeq/Utils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ module ValueTask =
let True = ValueTask<bool> true

/// Creates a ValueTask with the supplied result of the successful operation.
let inline fromResult ( value: 'T) = ValueTask<'T> value
let inline fromResult (value: 'T) = ValueTask<'T> value

[<Obsolete "From version 0.4.0 onward, 'ValueTask.FromResult' is deprecated in favor of 'ValueTask.fromResult'. It will be removed in an upcoming release.">]
let inline FromResult ( value: 'T) = ValueTask<'T> value
let inline FromResult (value: 'T) = ValueTask<'T> value

/// Creates a ValueTask with an IValueTaskSource representing the operation
let inline ofSource taskSource version = ValueTask<bool>(taskSource, version)
Expand Down

0 comments on commit 4ce79ef

Please sign in to comment.