Uses of Interface
kilim.Fiber.Worker

Packages that use Fiber.Worker
Package
Description
 
 
 
 
  • Uses of Fiber.Worker in kilim

    Classes in kilim that implement Fiber.Worker
    Modifier and Type
    Class
    Description
    class 
    a minimal bridge or trampoline between woven and unwoven code backed by a Fiber giving the programmer explicit control over the event loop see Task for a more general and easier to use green thread implementation that automatically handles the event loop see Generator for more user friendly wrapper to use override execute() and call run() each time run() is called, execute runs until it yields, returns or throws an exception return value of true means either execute returned or threw an exception (accessible as ex()) with state stored in an internal Fiber field across invocations to reuse a Continuation, call reset() Continuation provides no scheduler - it is entirely the responsibility of the calling code to call run() again once the pausing condition has been satisfied typically used for state machines and Generators or to port an existing event loop to kilim this is a low level facility, see kilim.examples.Xorshift.X2 for an example of direct use
    static class 
     
    class 
    A Generator, from the caller's perspective, looks like a normal iterator that produces values.
    class 
    Task<TT>
    A base class for tasks.
    static class 
     
    static class 
     
    static class 
     
    class 
     
  • Uses of Fiber.Worker in kilim.examples

    Classes in kilim.examples that implement Fiber.Worker
    Modifier and Type
    Class
    Description
    class 
    Set up a chain of tasks.
    class 
    Spawn a task, communicate through a shared mailbox.
    class 
    This example prints the nth Fibonacci number.
    (package private) static class 
     
    class 
    A 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 class 
     
    static class 
    Server is a SessionTask, which means an instance of it is created by the NioSelectorScheduler on an incoming connection.
    (package private) class 
     
    (package private) class 
     
    static class 
     
    static class 
     
    static class 
     
    class 
     
    static class 
     
    class 
    Spawn a task, communicate through a shared mailbox.
    class 
    A slight extension to SimpleTask.
    class 
    Creates lots of tasks that print stuff, sleep, then wake up and print more.
    class 
     
    static class 
     
    static class 
     
    class 
     
    class 
     
    static class 
     
    static class 
     
  • Uses of Fiber.Worker in kilim.http

    Classes in kilim.http that implement Fiber.Worker
    Modifier and Type
    Class
    Description
    class 
    Responsible for creating an HTTPRequest object out of raw bytes from a socket, and for sending an HTTPResponse object in its entirety.
    static class 
     
    static class 
     
  • Uses of Fiber.Worker in kilim.nio

    Classes in kilim.nio that implement Fiber.Worker
    Modifier and Type
    Class
    Description
    (package private) class 
     
    class 
     
    class