Advertisement
matt95

Untitled

Oct 14th, 2020 (edited)
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. URLSession.shared
  2. .publisher(for: queryTypesEndpoint, using: pihole_token)
  3. .receive(on: DispatchQueue.main)
  4. .sink(receiveCompletion: { _ in }, receiveValue: { dictionary in
  5. if let queryTypes = dictionary["querytypes"] {
  6. self.queryTypes = queryTypes
  7. }
  8. })
  9. .store(in: &cancellables)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement