ios - Cocoa, how to know which operations can be called outside of main thread -



ios - Cocoa, how to know which operations can be called outside of main thread -

how know if can execute function scheme sdk outside of main thread?

is there rule of thumb?

like illustration function corebluetooth

- (void)connectperipheral:(cbperipheral *)peripheral options:(nsdictionary *)options;

can exceed other thread main thread or not?

the docs don't state this

generally, ui related code has run on main thread, else can run on separate thread unless stated in documentation. so, looks method specified can run on background thread.

ios multithreading cocoa sdk thread-safety

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -