• Create child thread – self.actionbtn.rx.tap. Subscribe
DispatchQueue.global().async {
            print("Request data")
            self.actionBtn.rx.tap
                .subscribe(onNext: { (tap) in
                    print("Click on --\(thread.current)")
                })
            .dispose()
        }
Copy the code

3. To print a thread in a child thread, which logically should print the child’s actual condition:

This is due to rX thread scheduling processing: