main
method to be implemented by subclassesThis class is provided for compatibility between different parallelization systems. It can be used to run a fragment of code on a different thread and to register a reaction to UI events.
core :: Task :: defaultinit
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
core :: Task :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).
# Task with a `main` method to be implemented by subclasses
#
# This class is provided for compatibility between different parallelization systems.
# It can be used to run a fragment of code on a different thread and
# to register a reaction to UI events.
interface Task
# Main method of this task
fun main do end
end
lib/core/kernel.nit:1088,1--1097,3
redef class Task
# Additional work executed after `main` from a `ThreadPool`
private fun after_main do end
end
lib/pthreads/threadpool.nit:81,1--84,3