Show raw api
{
"functions": [
{
"name": "clone",
"desc": "Clones a brio, such that it may be killed without affecting the original\nbrio.",
"params": [
{
"name": "brio",
"desc": "",
"lua_type": "Brio<T>"
}
],
"returns": [
{
"desc": "",
"lua_type": "Brio<T>"
}
],
"function_type": "static",
"source": {
"line": 20,
"path": "src/brio/src/Shared/BrioUtils.lua"
}
},
{
"name": "aliveOnly",
"desc": "Returns a list of alive Brios only",
"params": [
{
"name": "brios",
"desc": "",
"lua_type": "{Brio<T>}"
}
],
"returns": [
{
"desc": "",
"lua_type": "{Brio<T>}"
}
],
"function_type": "static",
"source": {
"line": 51,
"path": "src/brio/src/Shared/BrioUtils.lua"
}
},
{
"name": "firstAlive",
"desc": "Returns the first alive Brio in a list",
"params": [
{
"name": "brios",
"desc": "",
"lua_type": "{Brio<T>}"
}
],
"returns": [
{
"desc": "",
"lua_type": "Brio<T>"
}
],
"function_type": "static",
"source": {
"line": 67,
"path": "src/brio/src/Shared/BrioUtils.lua"
}
},
{
"name": "flatten",
"desc": "Given a list of brios of brios, flattens that list into a brio with\njust one T value.",
"params": [
{
"name": "brioTable",
"desc": "",
"lua_type": "{ any: Brio<Brio<T> | T>}"
}
],
"returns": [
{
"desc": "",
"lua_type": "Brio<{T}>"
}
],
"function_type": "static",
"source": {
"line": 83,
"path": "src/brio/src/Shared/BrioUtils.lua"
}
},
{
"name": "first",
"desc": "Returns a brio that dies whenever the first Brio in the list\ndies. The value of the Brio is the `...` value.",
"params": [
{
"name": "brios",
"desc": "",
"lua_type": "{Brio<T>}"
},
{
"name": "...",
"desc": "",
"lua_type": "U"
}
],
"returns": [
{
"desc": "",
"lua_type": "Brio<U>"
}
],
"function_type": "static",
"source": {
"line": 111,
"path": "src/brio/src/Shared/BrioUtils.lua"
}
},
{
"name": "withOtherValues",
"desc": "Clones a brio, such that it may be killed without affecting the original\nbrio.",
"params": [
{
"name": "brio",
"desc": "",
"lua_type": "Brio<T>"
},
{
"name": "...",
"desc": "",
"lua_type": "U"
}
],
"returns": [
{
"desc": "",
"lua_type": "Brio<U>"
}
],
"function_type": "static",
"since": "3.6.0",
"source": {
"line": 147,
"path": "src/brio/src/Shared/BrioUtils.lua"
}
},
{
"name": "extend",
"desc": "Makes a brio that is limited by the lifetime of its parent (but could be shorter)\nand has the new values given.",
"params": [
{
"name": "brio",
"desc": "",
"lua_type": "Brio<U>"
},
{
"name": "...",
"desc": "",
"lua_type": "T"
}
],
"returns": [
{
"desc": "",
"lua_type": "Brio<T>"
}
],
"function_type": "static",
"source": {
"line": 171,
"path": "src/brio/src/Shared/BrioUtils.lua"
}
},
{
"name": "prepend",
"desc": "Makes a brio that is limited by the lifetime of its parent (but could be shorter)\nand has the new values given at the beginning of the result",
"params": [
{
"name": "brio",
"desc": "",
"lua_type": "Brio<U>"
},
{
"name": "...",
"desc": "",
"lua_type": "T"
}
],
"returns": [
{
"desc": "",
"lua_type": "Brio<T>"
}
],
"function_type": "static",
"since": "3.6.0",
"source": {
"line": 209,
"path": "src/brio/src/Shared/BrioUtils.lua"
}
},
{
"name": "merge",
"desc": "Merges the existing brio value with the other brio",
"params": [
{
"name": "brio",
"desc": "",
"lua_type": "Brio<{T}>"
},
{
"name": "otherBrio",
"desc": "",
"lua_type": "Brio<{U}>"
}
],
"returns": [
{
"desc": "",
"lua_type": "Brio<{T | U}>"
}
],
"function_type": "static",
"source": {
"line": 245,
"path": "src/brio/src/Shared/BrioUtils.lua"
}
}
],
"properties": [],
"types": [],
"name": "BrioUtils",
"desc": "Utility functions affecting Brios.",
"source": {
"line": 5,
"path": "src/brio/src/Shared/BrioUtils.lua"
}
}