Remove asynctask code (#666)

* Remove asynctask code

* add job test example

* Fix testing

* Fix a couple of imports
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2025-06-22 17:39:58 -04:00
1 parent 9ef741292e
commit 82dea9af37
36 files changed
+325 -443

No files matched your search

@@ -35,4 +35,17 @@ namespace Assert
throw "Assertion failed: Node does not have field '" + field + "'. " + ToString(message)
end if
end function
function NotNullOrEmpty(value as dynamic, message = invalid as dynamic) as void
if value = invalid
throw "Assertion failed: Value is invalid. " + ToString(message)
end if
if IsString(value) and (Len(value) = 0)
throw "Assertion failed: Value is an empty string. " + ToString(message)
else if IsArray(value) and (value.Count() = 0)
throw "Assertion failed: Value is an empty array. " + ToString(message)
else if IsAssociativeArray(value) and (value.ifAssociativeArray.count() = 0)
throw "Assertion failed: Value is an empty associative array. " + ToString(message)
end if
end function
end namespace
+1
View File
@@ -1,3 +1,4 @@
import "pkg:/source/utils/StringUtils.bs"
import "pkg:/source/utils/Types.bs"
namespace UrlUtils