de.sciss.mellite.InterpreterContext.scala Maven / Gradle / Ivy
/*
* InterpreterContext.scala
* (Mellite)
*
* Copyright (c) 2012-2023 Hanns Holger Rutz. All rights reserved.
*
* This software is published under the GNU Affero General Public License v3+
*
*
* For further information, please contact Hanns Holger Rutz at
* [email protected]
*/
package de.sciss.mellite
object InterpreterContext {
def apply[A](thunk: => A): A = concurrent.stm.atomic(_ => thunk)
}