package Ġme . s aket . k git Ċ Ċ import Ġjava . io . Closeable Ċ import Ġkotlin . contracts . Experimental Contracts Ċ import Ġkotlin . contracts . Invocation Kind . EX ACT LY _ ON CE Ċ import Ġkotlin . contracts . contract Ċ import Ġkotlin . io . use Ġas Ġkotlin Use Ċ Ċ @ Opt In ( Experimental Contracts :: class ) Ċ internal Ġinline Ġfun Ġ< T Ġ: ĠAuto Closeable , ĠR > ĠT . use ( block : Ġ( T ) Ġ-> ĠR ): ĠR Ġ{ ĊĠ Ġcontract Ġ{ Ġcalls In Place ( block , ĠEX ACT LY _ ON CE ) Ġ} ĊĊĠ Ġval Ġclose able Ġ= ĠClose able Ġ{ Ġclose () Ġ} ĊĠ Ġreturn Ġclose able . kotlin Use Ġ{ ĊĠĠĠ Ġblock ( this ) ĊĠ Ġ} Ċ } Ċ