You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
Hi @dduan currently I found a problem when trying to do Just.get().
from what I see, there is a possibility when doing Just.get() the request is nil when trying to makeTask
// Just.swift
...publicfunc synthesizeRequest(...)->URLRequest?...func makeTask(_ request:URLRequest, configuration:TaskConfiguration)->URLSessionDataTask?...
guard let request =synthesizeRequest()...
// variabel `request` below can be `nil`
iflet task =makeTask(request, configuration: config){
task.resume()}
isn't synthesizeRequest() supposed return URLRequest without nil?
This only happens in production build and I can't reproduce the crash.
Xcode 11.1
Swift 5
The text was updated successfully, but these errors were encountered:
a) I think in method syncBookingsIfNeed closure onComplete should be @escaping
b) Closure onComplete of method syncBookingsIfNeed just call event no other http request have done, you should consider using DispatchGroup for this
a) I think in method syncBookingsIfNeed closure onComplete should be @escaping
b) Closure onComplete of method syncBookingsIfNeed just call event no other http request have done, you should consider using DispatchGroup for this
Hi @cuongtv51 sorry for the late reply, thank you for responding, I'll try to do as you say first, and I'll report if it is resolved or not. thank you.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi @dduan currently I found a problem when trying to do
Just.get()
.from what I see, there is a possibility when doing
Just.get()
therequest
isnil
when trying tomakeTask
isn't
synthesizeRequest()
supposed returnURLRequest
withoutnil
?This only happens in production build and I can't reproduce the crash.
Xcode 11.1
Swift 5
The text was updated successfully, but these errors were encountered: