-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test plan for "Lock
object" feature
#71888
Comments
jjonescz
changed the title
Test plan for "native lock" feature
Test plan for "Jan 31, 2024
Lock
object" feature
This was referenced Feb 2, 2024
This was referenced Feb 15, 2024
This was referenced Mar 7, 2024
This was referenced Jul 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Proposal: dotnet/csharplang#7104
Speclet: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-13.0/lock-object.md
Runtime API proposal: dotnet/runtime#34812
-langversion
checklock (expr)
EnterLockScope
finally
block callsScope.Dispose
Monitor
APIs used for convertedLock
expressiondynamic
Lock
as
Obsolete
(no diagnostics)async
await
inlock
bodyawait
inlock
bodyasync
local functionasync
lambdayield
inlock
bodyyield
inlock
bodyasync
iterator that returnsIAsyncEnumerable
Lock
defined asstruct
Lock
defined asref struct
Lock
defined asinterface
Scope
defined asclass
Scope
defined asstruct
EnterLockScope
missingScope
missingScope.Dispose
missingLock
inaccessibleScope
inaccessibleEnterLockScope
inaccessibleScope.Dispose
inaccessibleLock
genericScope
genericEnterLockScope
genericScope.Dispose
genericScope
not a member ofLock
EnterLockScope
with parametersEnterLockScope
with optional orparams
parametersEnterLockScope
returnsvoid
EnterLockScope
returns type other thanScope
Scope.Dispose
with parametersScope.Dispose
with optional orparams
parametersScope.Dispose
returns typeEnterLockScope
isstatic
Scope.Dispose
isstatic
EnterLockScope
overloadsScope.Dispose
overloadsEnterLockScope
defined on base classScope
defined on base classEnterLockScope
as virtual, override, hiddenScope.Dispose
as virtual, override, hiddenEnterLockScope
as explicit implementationScope.Dispose
as explicit implementationEnterLockScope
use-site errorsScope
use-site errorsScope.Dispose
use-site errorslock (expr) { }
body,expr
is treated as notnull
(not specific toLock
)Lock
membersLock
membersLock
membersLock
membersSyncLock
Lock
Dispose()
is invoked after editinglock
bodyEnter
/Exit
andTry
/Finally
when net9 is available. See Handle Lock type in VB #71927 (comment).EnterLockScope
name in particular) and rename if necessary.Productivity
The text was updated successfully, but these errors were encountered: