vibe.d beta banner
get vibe.d

Module vibe.core.core

This module contains the core functionality of the vibe.d framework.

See runApplication for the main entry point for typical vibe.d server or GUI applications.


Name Description
createFileDescriptorEvent Creates an event to wait on an existing file descriptor.
createTimer Creates a new timer without arming it.
disableDefaultSignalHandlers Disables the signal handlers usually set up by vibe.d.
exitEventLoop Stops the currently running event loop.
logicalProcessorCount Determines the number of logical processors in the system.
lowerPrivileges Sets the effective user and group ID to the ones configured for privilege lowering.
processEvents Process all pending events without blocking.
rawYield Yields execution of this task until an event wakes it up again.
runApplication Performs final initialization and runs the event loop.
runEventLoop Starts the vibe.d event loop for the calling thread.
runTask Runs a new asynchronous task.
runWorkerTask Runs a new asynchronous task in a worker thread.
runWorkerTaskDist Runs a new asynchronous task in all worker threads concurrently.
runWorkerTaskH Runs a new asynchronous task in a worker thread, returning the task handle.
setIdleHandler Sets a callback that is called whenever no events are left in the event queue.
setTaskEventCallback Sets a callback that is invoked whenever a task changes its status.
setTaskStackSize Sets the stack size to use for tasks.
setTimer Returns a new armed timer.
setupWorkerThreads Sets up num worker threads.
sleep Suspends the execution of the calling task for the specified amount of time.
workerThreadCount The number of worker threads used for processing worker tasks.
yield Suspends the execution of the calling task to let other tasks and events be handled.


Name Description
TaskLocal Implements a task local storage variable.
Timer Represents a timer.


Name Description
TaskEvent High level state change events for a Task

Enum values

Name Type Description
maxTaskParameterSize The maximum combined size of all parameters passed to a task delegate
vibeVersionString A version string representing the current vibe.d version


Name Type Description
TaskArgsVariant std.variant.VariantN!(128L)
TaskEventCb nothrow void function(TaskEvent, Task)

Sönke Ludwig


© 2012-2016 RejectedSoftware e.K.


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.