scoop:scoop.window.asyncio:0.1.0
platform/darwin/host.scoop
Selected production source · platform/darwin/host.scoop
1
package scoop.window.asyncio3
import scoop.asyncio.host.*4
import scoop.window.native.*6
@Unsafe7
internal fun platformWatch(8
host: ApplicationHost,9
notification: EventLoopNotification,10
ready: () -> Unit11
): ApplicationWatch =12
when (notification) {13
case ReadableDescriptor(val descriptor) -> host.watchReadable(descriptor, ready)14
case WindowsEvent(_) -> throw IllegalArgumentException(15
Some("AppKit requires a readable descriptor")16
)17
}