diff options
author | zverok <[email protected]> | 2021-12-30 20:52:42 +0200 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2022-12-22 13:37:58 +0900 |
commit | ae455a129e97709d7fd8b11c1e5c3245f4738528 () | |
tree | ef2d98e4fd9888bca2b4f5bcdd492644f00a4034 /trace_point.rb | |
parent | b7bb14b96e7e1923d91787fa5a9ca2e4053431b1 (diff) |
[DOC] Update TracePoint.allow_reentry docs
Adjust call-seq to mention block, and add examples and explanations.
Notes: Merged: https://.com/ruby/ruby/pull/5380
-rw-r--r-- | trace_point.rb | 51 |
1 files changed, 50 insertions, 1 deletions
@@ -136,7 +136,7 @@ class TracePoint end # call-seq: - # TracePoint.allow_reentry # # In general, while a TracePoint callback is running, # other registered callbacks are not called to avoid @@ -147,6 +147,55 @@ class TracePoint # # If this method is called when the reentrance is already allowed, # it raises a RuntimeError. def self.allow_reentry Primitive.tracepoint_allow_reentry end |