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 ->seq<'U>,_:Using)=seq{tryfor e inbody resourcedoyield e finallyifnot(isNull (box resource))then resource.Dispose ()}: seq<'U>
309
+
static memberUsing(resource:'T when 'T :>IDisposable,body:'T ->NonEmptySeq<'U>,_:Using)=seq{tryfor e inbody resourcedoyield e finallyifnot(isNull (box resource))then resource.Dispose ()}|> NonEmptySeq.unsafeOfSeq : NonEmptySeq<'U>
310
310
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
311
311
static memberUsing(resource:'T when 'T :>IDisposable,body:'T ->Async<'U>,_:Using )= async.Using (resource, body)
0 commit comments