[#BloombergLP-bdlmt-TimerEventScheduler-2constructor-0ee]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/TimerEventScheduler.adoc[TimerEventScheduler]::TimerEventScheduler
:relfileprefix: ../../../
:mrdocs:

Construct an event scheduler with the given dispatcher and clock&period;

== Synopsis

Declared in `&lt;bdlmt&lowbar;timereventscheduler&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
TimerEventScheduler(
    xref:BloombergLP/bdlmt/TimerEventScheduler/Dispatcher.adoc[Dispatcher] const& dispatcherFunctor,
    xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Construct an event scheduler using the specified `dispatcherFunctor` (see &quot;The dispatcher thread and the dispatcher functor&quot; section in component&hyphen;level doc) and use the specified `clockType` to indicate the epoch used for all time intervals (see &lsqb;&rsqb;Clock&hyphen;Types))&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; Note that the maximal number of scheduled non&hyphen;recurring events and recurring events defaults to an implementation defined constant&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dispatcherFunctor*
| functor that runs dispatched callbacks
| *clockType*
| clock used for time intervals
| *basicAllocator*
| memory allocator&semi; null uses the default
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
