Skip to content

Commit

Permalink
foundeo#1521 adding IsInThread Lucee documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Drew committed Oct 21, 2024
1 parent 12c9951 commit 018af96
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions data/en/isinthread.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "isinthread",
"type": "function",
"syntax": "isinthread()",
"returns": "boolean",
"description": "Determines whether the executing code is inside a cfthread or not.",
"params": [],
"engines": {
"lucee": {
"notes": "",
"minimum_version": "5.0.0.0",
"docs": "https://docs.lucee.org/reference/functions/isinthread.html"
}
},
"examples": [
{
"title": "isinthread Example",
"description": "Check if the code is running inside a cfthread.",
"code": "request.inthread = false;\nwriteOutput(isInThread());\nthread action=\"run\" name=\"inThread\" {\n request.inthread = isInThread();\n}\nsleep(1000);\nwriteOutput(request.inthread)",
"result": "falsetrue"
}
]
}

0 comments on commit 018af96

Please sign in to comment.