Fixing Combine error “cannot invoke 'debounce' with an argument list of type '(for: Double, scheduler: RunLoop)'”

我与影子孤独终老i 提交于 2019-12-13 02:47:36

问题


In the WWDC beta, I see an error when using the debounce function from Combine, like this

debounce(for: 0.5, scheduler: RunLoop.main)

Error is cannot invoke 'debounce' with an argument list of type '(for: Double, scheduler: RunLoop)_

I guess the build is not as recent as the Combine presentations themselves, which do use this construction.

Has anyone got a workaround?

来源:https://stackoverflow.com/questions/56564967/fixing-combine-error-cannot-invoke-debounce-with-an-argument-list-of-type-f

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!