rd-core
2023.2.3
rd-core
/
com.jetbrains.rd.util.threading
/
TestSingleThreadScheduler
Test
Single
Thread
Scheduler
class
TestSingleThreadScheduler
(
val
name
:
String
)
:
SingleThreadSchedulerBase
Content copied to clipboard
Constructors
Functions
Properties
Constructors
Test
Single
Thread
Scheduler
Link copied to clipboard
fun
TestSingleThreadScheduler
(
name
:
String
)
Content copied to clipboard
Functions
assert
No
Exceptions
Link copied to clipboard
fun
assertNoExceptions
(
)
Content copied to clipboard
assert
Thread
Link copied to clipboard
open
fun
assertThread
(
debugInfo
:
Any
?
=
null
)
Content copied to clipboard
flush
Link copied to clipboard
open
override
fun
flush
(
)
Content copied to clipboard
invoke
Or
Queue
Link copied to clipboard
open
fun
invokeOrQueue
(
action
:
(
)
->
Unit
)
Content copied to clipboard
on
Exception
Link copied to clipboard
open
override
fun
onException
(
ex
:
Throwable
)
Content copied to clipboard
queue
Link copied to clipboard
open
override
fun
queue
(
action
:
(
)
->
Unit
)
Content copied to clipboard
Queues the execution of the given
action
.
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
Content copied to clipboard
Properties
executor
Link copied to clipboard
val
executor
:
ThreadPoolExecutor
Content copied to clipboard
is
Active
Link copied to clipboard
open
override
val
isActive
:
Boolean
Content copied to clipboard
name
Link copied to clipboard
val
name
:
String
Content copied to clipboard
out
Of
Order
Execution
Link copied to clipboard
open
val
outOfOrderExecution
:
Boolean
Content copied to clipboard
tasks
In
Queue
Link copied to clipboard
val
tasksInQueue
:
AtomicInteger
Content copied to clipboard