We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b28a608 commit 322a9efCopy full SHA for 322a9ef
Sources/GateEngine/ECS/Base/Entity.swift
@@ -194,12 +194,12 @@ extension Entity {
194
@inlinable
195
public func configure<T: Component, ResultType>(
196
_ type: T.Type,
197
- _ config: (_ component: inout T) async -> ResultType
198
- ) async -> ResultType {
+ _ config: (_ component: inout T) async throws -> ResultType
+ ) async rethrows -> ResultType {
199
if self.hasComponent(type) == false {
200
self.insert(type.init())
201
}
202
- return await config(&self[T.self])
+ return try await config(&self[T.self])
203
204
205
/// Allows changing a component, addind it first if needed.
0 commit comments