You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static memberUsing(resource:'T when 'T :>IDisposable,body:'T ->'R ->'U ,_:Using )=(fun s ->try body resource s finallyifnot(isNull (box resource))then resource.Dispose ()): 'R->'U
308
310
static memberUsing(resource:'T when 'T :>IDisposable,body:'T ->Async<'U>,_:Using )= async.Using (resource, body)
309
311
#if!FABLE_COMPILER
310
-
static memberUsing(resource:'T when 'T :>IDisposable,body:'T ->Task<'U>,_:Using )= Task.using resource body
312
+
static memberUsing(resource:'T when 'T :>IDisposable,body:'T ->Task<'U>,_:Using)= Task.using resource body
313
+
static memberUsing(resource:'T when 'T :>IDisposable,body:'T ->ValueTask<'U>,_:Using)= ValueTask.using resource body
0 commit comments