Uses of Class
kilim.Task
Packages that use Task
-
Uses of Task in kilim
Modifier and TypeClassDescriptionstatic classstatic classstatic classTask.Invoke<TT>static classTask.Spawn<TT>classModifier and TypeFieldDescription(package private) final TaskEmptySet_MsgAvListener.taskExitMsg.taskFiber.taskModifier and TypeFieldDescriptionTaskGroup.addedTasksMBprotected LinkedBlockingQueue<Task> AffineScheduler.Executor.queprivate static final ThreadLocal<Task> Scheduler.taskMgr_TaskGroup.tasksModifier and TypeMethodDescriptionstatic TaskTask.fork(Pausable.Fork body) Wraps the given object or lambda expression in a Task and starts that task.protected static TaskScheduler.getCurrentTask()static TaskTask.getCurrentTask()This is a placeholder that doesn't do anything useful.Task.setScheduler(Scheduler s) Task.start()Used to start the task; the task doesn't resume on its own.Fiber.task()Modifier and TypeMethodDescriptionvoidstatic voidTask.errNotWoven(Task t) static intTask.getStackDepth(Task task) The generated code calls Fiber.upEx, which in turn calls this to find out out where the current method is w.r.t the closest _runExecute method.booleanMailbox.hasMessage(Task eo) booleanMailbox.hasMessages(int num, Task eo) booleanbooleanbooleanbooleanbooleanbooleanTrue if the given task's reason for pausing is still valid.booleanbooleanprotected void(package private) voidvoidvoidabstract voidschedule a task to runvoidSchedule a task to run.protected static voidScheduler.setCurrentTask(Task t) private booleanMailboxMPSC.srcContains(Task t) private booleanMailboxSPSC.srcContains(Task t) void -
Uses of Task in kilim.examples
Subclasses of Task in kilim.examplesModifier and TypeClassDescriptionclassSet up a chain of tasks.classSpawn a task, communicate through a shared mailbox.(package private) static classclassA simple file server over http Usage: Run java kilim.examples.HttpFileServer [base directory name] From a browser, go to "http://localhost:7262".class(package private) static classstatic classServer is a SessionTask, which means an instance of it is created by the NioSelectorScheduler on an incoming connection.static classclassstatic classclassSpawn a task, communicate through a shared mailbox.classA slight extension to SimpleTask.classCreates lots of tasks that print stuff, sleep, then wake up and print more.classstatic classstatic classclassclass -
Uses of Task in kilim.http
Subclasses of Task in kilim.httpModifier and TypeClassDescriptionclassResponsible for creating an HTTPRequest object out of raw bytes from a socket, and for sending an HTTPResponse object in its entirety.static classstatic class -
Uses of Task in kilim.nio
Modifier and TypeClassDescription(package private) classclassclass