Threads

Methods

  • array.each() call the given UDF/Closure with every value in the array.
  • array.every() This function calls a given closure/function with every element in a given array and returns true, if all of the closure calls returns true.
  • array.filter() This function creates a new Array that returns all the values from an array that match the given filter.
  • array.map() Calls the given closure with every element in the given array. the function returns an array that contains all values returned by the closure.
  • array.reduce() Iterates over every entry of the given array and calls the closure with every element. This function will reduce the array to a single value and will return the value.
  • query.each() call the given UDF/Closure with every row (struct) in the query.
  • query.every() This function calls a given closure/function with every element in a given query and returns true, if all of the closure calls returns true.
  • query.filter() This function creates a new Query that returns all rows from an query that match the given filter.
  • query.map() Calls the given closure with every row in the given query. the function returns a query that contains all values returned by the closure.
  • query.reduce() Iterates over every row of the given query and calls the closure with that row. This function will reduce the query to a single value and will return this value.
  • string.listEach() call the given UDF/Closure with every value in the string list.
  • string.listEvery() This function calls a given closure/function with every element in a given string list and returns true, if all of the closure calls returns true.
  • string.listMap() Calls the given closure with every element in the given list. The function returns a list that contains all values returned by the closure.
  • string.listReduce() Iterates over every entry of the given list and calls the closure with every element. This function will reduce the list to a single value and will return the value.
  • string.listSome() This function calls a given closure/function with every element in a given string list and returns true, if one of the closure calls returns true.
  • struct.each() call the given UDF/Closure with every entry (key/value) in the struct.
  • struct.every() This function calls a given closure/function with every element in a given struct and returns true, if all of the closure calls returns true.
  • struct.map() Calls the given closure with every element in the given struct. the function returns a struct that contains all values returned by the closure.
  • struct.reduce() Iterates over every entry of the given struct and calls the closure with every key/value. This function will reduce the struct to a single value and will return this value.

Categories

Functions

  • ArrayEach() call the given UDF/Closure with every value in the array.
  • ArrayEvery() This function calls a given closure/function with every element in a given array and returns true, if all of the closure calls returns true.
  • ArrayFilter() This function creates a new Array that returns all the values from an array that match the given filter.
  • ArrayMap() Calls the given closure with every element in the given array. the function returns an array that contains all values returned by the closure.
  • ArrayReduce() Iterates over every entry of the given array and calls the closure with every element. This function will reduce the array to a single value and will return the value.
  • Each() call the given UDF/Closure with every entry (key/value) in the given collection.
  • IsInThread() Determines whether the executing code is inside a cfthread or not.
  • ListEach() call the given UDF/Closure with every value in the string list.
  • ListEvery() This function calls a given closure/function with every element in a given string list and returns true, if all of the closure calls returns true.
  • ListMap() Calls the given closure with every element in the given list. The function returns a list that contains all values returned by the closure.
  • ListReduce() Iterates over every entry of the given list and calls the closure with every element. This function will reduce the list to a single value and will return the value.
  • ListSome() This function calls a given closure/function with every element in a given string list and returns true, if one of the closure calls returns true.
  • QueryEach() call the given UDF/Closure with every row (struct) in the query.
  • QueryEvery() This function calls a given closure/function with every element in a given query and returns true, if all of the closure calls returns true.
  • QueryFilter() This function creates a new Query that returns all rows from an query that match the given filter.
  • QueryMap() Calls the given closure with every row in the query.
  • QueryReduce() Iterates over every row of the given query and calls the closure with that row. This function will reduce the query to a single value and will return this value.
  • RunAsync() A function that returns a Future object, which is an eventual result of an asynchronous operation
  • StructEach() call the given UDF/Closure with every entry (key/value) in the struct.
  • StructEvery() This function calls a given closure/function with every element in a given struct and returns true, if all of the closure calls returns true.
  • StructMap() Calls the given closure with every element in the given struct. the function returns a struct that contains all values returned by the closure.
  • ThreadData() returns the root cfthread scope.
  • ThreadJoin() Makes the current thread wait until the thread or threads specified in the name attribute complete processing, or until the period specified in the timeout argument passes, before continuing processing. If you don't specify a timeout and thread you are joining to doesn't finish, the current thread also cannot finish processing
  • ThreadTerminate() Stops processing of the thread specified in the name attribute.

Guides

  • Operators Mathematical, Logical, Ternary, Comparison, String and Elvis Operators
  • Thread Task How to use Thread Tasks
  • Threads How to use threads in Lucee

Tags

  • <cfthread> The cfthread tag enables you to create threads, independent streams of code execution, in your application.