
de.sciss.synth.Completion.scala Maven / Gradle / Ivy
package de.sciss.synth
import de.sciss.osc.Packet
object Completion {
implicit def fromPacket[T]( p: Packet ) = Completion[T]( Some( (_: T) => p ), None ) // message[T]( msg )
}
final case class Completion[ T ]( message: Option[ T => Packet ], action: Option[ T => Unit ])
© 2015 - 2025 Weber Informatics LLC | Privacy Policy