Skip to content

Commit

Permalink
fix js build
Browse files Browse the repository at this point in the history
  • Loading branch information
fwbrasil committed Feb 23, 2024
1 parent 09b58b8 commit 3fd89d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package java.util.concurrent

class ThreadFactory

object ThreadFactoryStub:
val get = new ThreadFactory
3 changes: 0 additions & 3 deletions kyo-core/js/src/main/scala/kyo/scheduler/ThreadFactory.scala

This file was deleted.

6 changes: 3 additions & 3 deletions kyo-core/js/src/main/scala/kyo/scheduler/Threads.scala
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package kyo.scheduler

import java.util.concurrent.ThreadFactory
import java.util.concurrent.ThreadFactoryStub

object Threads:

def apply(name: String): ThreadFactory =
new ThreadFactory
ThreadFactoryStub.get

def apply(name: String, create: Runnable => Thread): ThreadFactory =
new ThreadFactory
ThreadFactoryStub.get
end Threads

0 comments on commit 3fd89d2

Please sign in to comment.