浏览代码

Documented admonition on when to use custom signals (#11814)

Thanks Cesar Canassa for the suggestion and Aymeric Augustin for review.
Adam Johnson 5 年之前
父节点
当前提交
566fca14b3
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      docs/topics/signals.txt

+ 6 - 0
docs/topics/signals.txt

@@ -206,6 +206,12 @@ Defining and sending signals
 Your applications can take advantage of the signal infrastructure and provide
 Your applications can take advantage of the signal infrastructure and provide
 its own signals.
 its own signals.
 
 
+.. admonition:: When to use custom signals
+
+    Signals are implicit function calls which make debugging harder. If the
+    sender and receiver of your custom signal are both within your project,
+    you're better off using an explicit function call.
+
 Defining signals
 Defining signals
 ----------------
 ----------------