.sink is not returning the promise values from a Future Publisher

后端 未结 1 1886
一整个雨季
一整个雨季 2021-01-28 00:58

I have this code in lrvViewModel.swift

func getVerificationID (phoneNumber: String) -> Future {

        return Future

        
相关标签:
1条回答
  • 2021-01-28 01:08

    What's going on is that your .sink is not followed by a .store command, so the pipeline goes out of existence before any value has a chance to come down it.

    Your assignment of the pipeline to the empty _ effectively masks the problem. The compiler tried to warn you, and you shut it down.

    0 讨论(0)
提交回复
热议问题