[feature] added retrieve code sample using multi thread