diff --git a/changelog/deprecate_std_signals.dd b/changelog/deprecate_std_signals.dd new file mode 100644 index 00000000000..3188ca0da10 --- /dev/null +++ b/changelog/deprecate_std_signals.dd @@ -0,0 +1,10 @@ +Deprecate std.signals + +`std.signals` is considered out-dated and not up to Phobos' current +standards. It will be removed from Phobos in 2.107.0. + +If you still need it, go to $(LINK https://github.com/DigitalMars/undeaD) + +Other alternatives are: +$(LINK https://code.dlang.org/packages/descore) and +$(LINK https://code.dlang.org/packages/phobosx) diff --git a/std/package.d b/std/package.d index a1d04444d62..c5c93796522 100644 --- a/std/package.d +++ b/std/package.d @@ -64,7 +64,6 @@ public import std.random, std.range, std.regex, - std.signals, std.socket, std.stdint, std.stdio, diff --git a/std/signals.d b/std/signals.d index 23639eb7692..9d54a259f62 100644 --- a/std/signals.d +++ b/std/signals.d @@ -1,6 +1,10 @@ // Written in the D programming language. /** + * $(RED Warning: This module is considered out-dated and not up to Phobos' + * current standards. It will be removed from Phobos in 2.107.0. + * If you still need it, go to $(LINK https://github.com/DigitalMars/undeaD)) + * * Signals and Slots are an implementation of the Observer Pattern. * Essentially, when a Signal is emitted, a list of connected Observers * (called slots) are called. @@ -60,6 +64,8 @@ * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ +// @@@DEPRECATED_[2.107.0]@@@ +deprecated("Will be removed from Phobos in 2.107.0. If you still need it, go to https://github.com/DigitalMars/undeaD") module std.signals; import core.exception : onOutOfMemoryError; @@ -286,7 +292,6 @@ mixin template Signal(T1...) ST status; } -/// @system unittest { import std.signals;