This commit is contained in:
Михаил Капелько
2023-12-28 13:33:48 +03:00
parent 16026a7b47
commit d893364ff4
93 changed files with 2130 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
ctrl.m
.compactMap { shouldLoad%NAME%($0) }
.flatMap { v -> AnyPublisher<Net.Result%NAME%, Never> in
world.net().%REQUEST%(v).eraseToAnyPublisher()
}
.receive(on: DispatchQueue.main)
.sink { v in world.result%NAME%.send(v) }
.store(in: &%SUB%.subscriptions)