Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 371 Bytes

README.md

File metadata and controls

25 lines (23 loc) · 371 Bytes

WLNetwork

Example

API.getStockTW {
  switch $0 {
  case .success(let response):
      print(response)
  case .failure(let error):
      print(error)
  }
}
Task {
    let result = await API.getStockTW()
    switch result {
    case .success(let response):
        print(response)
    case .failure(let error):
        print(error)
    }
}