[#node-KernelNotifications-2constructor]
= xref:node.adoc[node]::xref:node/KernelNotifications.adoc[KernelNotifications]::KernelNotifications
:relfileprefix: ../../
:mrdocs:

Construct the notification handler&period;

== Synopsis

Declared in `&lt;node&sol;kernel&lowbar;notifications&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
KernelNotifications(
    std::function&lt;bool()&gt; const& shutdown&lowbar;request,
    std::atomic&lt;int&gt;& exit&lowbar;status,
    xref:node/Warnings.adoc[node::Warnings]& warnings);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *shutdown&lowbar;request*
| Callback used to request a node shutdown&period;
| *exit&lowbar;status*
| Atomic exit status set when a fatal error triggers shutdown&period;
| *warnings*
| Warnings subsystem that node warnings are forwarded to&period;
|===


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