为什么以下代码总是返回False
. obj
我已确保SomeBoolReturningFunc
正在返回True
。
Dim obj As Object = False
ThreadPool.QueueUserWorkItem(Sub(state)
state = SomeBoolReturningFunc()
End Sub,
obj)
'Keep waiting till queued thread completes
Return obj