Tagged articles
Callback
69 articles · Page 1 of 1

ITPUBSep 3, 2026 · Backend Development
This article explains Java callback mechanisms — synchronous and asynchronous — through interfaces, anonymous classes, lambdas, and CompletableFuture, demonstrates their use in Spring's BeanFactory and a payment integration, and shows how functional interfaces enable flexible data transformation for multi-bank integration.
CallbackCompletableFutureJava
0 likes · 15 min read

This guide explains how to capture the hidden $:LWCP_v1:$‑prefixed dingtalkid from DingTalk robot callbacks using a minimal Python HTTP service, then construct a dingtalk://jump‑robot link that pre‑fills a query, enabling users to launch an internal Agent with a single click.
CallbackDingTalkPython
0 likes · 12 min read

This article explains what function pointers are in C, shows their declaration syntax, provides simple and advanced usage examples—including callbacks, state machines, and command dispatch—offers best‑practice tips, and demonstrates how they empower flexible embedded development.
C++CallbackEmbedded
0 likes · 12 min read

This article explains PHP closures, showing their basic syntax, how to use them as function arguments, and how to generate dynamic functions at runtime with clear code examples that illustrate creating reusable and adaptable anonymous functions.
Callbackanonymous functionclosure
0 likes · 5 min read

This guide explains what PHP callbacks are, shows how to define them using anonymous functions or function name strings, demonstrates their implementation as function parameters and class methods, and outlines common scenarios such as event handling, asynchronous processing, and array sorting or filtering.
CallbackClass MethodPHP
0 likes · 4 min read

This article explains what callback functions are, how they enable asynchronous programming across languages, demonstrates their implementation with JavaScript, C/C++, Python and HTML examples, and discusses practical use‑cases, advantages, pitfalls like callback hell, and modern alternatives such as Promises and async/await.
C++CallbackJavaScript
0 likes · 23 min read

This article explains PHP’s array_map() function, covering its basic syntax, how to apply callbacks to single or multiple arrays, advanced techniques like passing extra parameters, and provides clear code examples that demonstrate transforming array data efficiently.
CallbackPHParray processing
0 likes · 4 min read

Learn how PHP’s powerful array_walk() function lets you iterate over arrays and apply custom callbacks, with clear examples ranging from simple value transformations to advanced techniques like passing userdata, using reference parameters, and integrating class methods for real-world development scenarios.
CallbackPHPTutorial
0 likes · 5 min read

This article explains what Python closures are, how they capture outer‑scope variables, demonstrates typical patterns such as data hiding, stateful counters, factory functions, callbacks and lazy evaluation, and highlights important pitfalls like memory use and late‑binding bugs.
CallbackPythonclosure
0 likes · 9 min read

This article explains a complete, reusable solution for recording operation logs in Java backend applications using Spring AOP, custom annotations, callback interfaces, and a user‑adapter to bridge third‑party logging libraries with the main program, enabling flexible storage and auditing.
BackendCallbackJava
0 likes · 8 min read

This article explains why a typical setTimeout callback loses its this context, outlines the four binding rules in JavaScript, and presents both classic fixes and modern approaches such as arrow functions and class field syntax to avoid common pitfalls in frontend development.
Arrow FunctionsCallbackFrontend Development
0 likes · 4 min read

This article explains the callback pattern in Java, compares synchronous and asynchronous callbacks, shows how to implement them with interfaces, anonymous classes, and Lambda expressions, and demonstrates practical uses in Spring bean factories and data‑processing pipelines.
CallbackJavaSpring
0 likes · 15 min read

This article explains PHP's powerful array_walk() function, detailing its syntax, parameter roles, basic and advanced examples—including squaring numbers, summing values with userdata, and invoking class methods—while highlighting practical use‑cases for backend development.
CallbackCode ExamplePHP
0 likes · 5 min read

This guide explains what software timers are, their implementation principles in operating systems, and provides a complete STM32‑based example with data structures, state machines, and full C code for initialization, start, update, stop, and status queries.
CallbackSTM32embedded C
0 likes · 10 min read

This article explains what software timers are, their implementation principles in operating systems, and provides a detailed STM32-based example—including clock tick handling, data structures, state management, and full C code for initializing, starting, updating, stopping, and testing timers.
CallbackSTM32embedded C
0 likes · 10 min read

The article demonstrates how to control the number of simultaneous HTTP requests in JavaScript by presenting three implementation styles—Promise, callback, and RxJS—along with real‑world examples, code snippets, and a discussion of their advantages and drawbacks.
CallbackConcurrencyrxjs
0 likes · 13 min read

This article explains the concepts of callbacks, anonymous functions, and closures in PHP, providing definitions, practical examples, and demonstrating how to implement sorting with callback functions, create inline anonymous functions, and use closures to capture external variables, highlighting their benefits for code reuse and readability.
CallbackPHPanonymous function
0 likes · 7 min read

This article introduces AsyncTool, a Java concurrency framework that enables flexible parallel, serial, dependent, and callback‑driven task orchestration, explains its core components (worker, callback, wrapper), and provides multiple code‑first examples illustrating complex workflow compositions.
Callbackasyncparallel execution
0 likes · 9 min read

This article explains PHP's array_walk() function, detailing its syntax, parameters, and demonstrating basic usage for element transformation, advanced techniques with userdata, and integration with class methods, while providing practical code examples and real‑world application scenarios.
BackendCallbackarray_walk
0 likes · 6 min read

This article introduces LangChain's callback mechanism, demonstrates how to implement custom synchronous and asynchronous callbacks in Python, compares them with JavaScript async patterns, and shows how to monitor token usage and control costs using OpenAI callbacks.
CallbackLLMLangChain
0 likes · 10 min read

This article explains the PHP array_map() function, its signature and parameters, and demonstrates how to use it with both named and anonymous callbacks to transform arrays, such as converting strings to uppercase and doubling numeric values.
BackendCallbackPHP
0 likes · 4 min read

This article explains PHP’s array_map() function, detailing its syntax, parameters, and return value, and provides clear examples using both named and anonymous callback functions to transform arrays, such as converting strings to uppercase and doubling numeric values.
BackendCallbackPHP
0 likes · 5 min read

array_udiff() is a PHP function that compares values of two or more arrays using a user-defined callback, returning the differences; this article explains its syntax, parameters, performance considerations, practical scenarios, and provides a complete code example demonstrating how to identify elements present in one array but not another.
BackendCallbackarray comparison
0 likes · 3 min read

This article explains PHP's array_map() function, detailing its syntax, parameters, and usage through practical examples with both named and anonymous callbacks, demonstrating how to transform arrays efficiently and shows the resulting output for verification.
CallbackCode ExamplePHP
0 likes · 5 min read

This article explains PHP callback functions, covering their definition through anonymous functions and function name strings, demonstrates implementation as function parameters and class methods with code examples, and discusses common use cases such as event handling, asynchronous operations, and array sorting or filtering.
CallbackClass MethodPHP
0 likes · 5 min read

This article explains the roles of Alipay's asynchronous and synchronous callbacks in PHP integration, outlines step‑by‑step processing procedures, and provides complete example code for verifying signatures, updating order status, and handling both server‑side notifications and front‑end return pages.
AlipayBackendCallback
0 likes · 7 min read

This guide explains how to integrate PHP with WeChat Work by registering a corporate account, creating an application, obtaining credentials, using PHP’s HTTP requests to acquire access tokens, and sending messages or retrieving user data, including a complete code example.
APIBackend IntegrationCallback
0 likes · 4 min read

The article explains how to extend NSIS’s Inetc plug‑in by adding a /callback switch, storing the callback address, pushing total size, downloaded amount and percentage onto the NSIS stack after each buffer, and invoking the user‑defined function to update a progress bar during downloads.
C++CallbackInetc
0 likes · 11 min read

This article thoroughly explores the internal workings of Dart's Stream API, detailing how callbacks are triggered through StreamController, the role of microtasks, the implementation of synchronous and broadcast stream controllers, and provides concrete code examples to illustrate each step of the process.
CallbackDartStream
0 likes · 16 min read

This article explains how C/C++ function pointers work, demonstrates their compiled address, shows why they lack context, introduces a closure struct to bundle code with data, and relates this pattern to C++'s std::function for storing callables with captured environment.
C++CallbackFunction Pointer
0 likes · 6 min read

This article explains Android’s display pipeline—CPU, GPU, and Display—and dives deep into how the Choreographer registers callbacks, schedules traversals, processes Vsync signals, and coordinates rendering to achieve fluid UI updates.
AndroidCallbackchoreographer
0 likes · 12 min read

This article explains how to set up Spring Boot and RabbitMQ message confirmation, covering environment preparation, publisher and consumer callback implementations, acknowledgment methods, testing procedures, and practical pitfalls such as missed acknowledgments, infinite redelivery loops, and duplicate consumption.
CallbackJavaMessageConfirmation
0 likes · 13 min read

The article explains PHP’s readline_callback_read_char function, which reads a single character from user input, triggers the callback installed via readline_callback_handler_install when a full line is received, and returns no value.
BackendCallbackFunction
0 likes · 1 min read

readline_callback_handler_remove() is a PHP function that removes the previously installed readline callback handler, restores the terminal settings, and returns true if a handler was successfully removed or false otherwise, providing a way to clean up interactive input sessions.
CallbackPHPreadline
0 likes · 1 min read

This guide explains the PHP function readline_callback_handler_install, which sets up a readline callback interface, displays a prompt, returns immediately, and details its parameters, automatic overriding behavior, and boolean return values for success or failure.
CallbackFunctionPHP
0 likes · 2 min read

This article explains the fundamentals of asynchronous programming and multithreading, compares their models with clear examples, discusses callbacks, highlights performance trade‑offs, and offers guidance on choosing the right approach for I/O‑heavy Java applications.
Asynchronous ProgrammingCallbackJava
0 likes · 8 min read

This article explains the PHP preg_replace_callback function, its parameters, how to use anonymous functions as callbacks, and demonstrates passing extra arguments via globals or class properties with clear code examples.
Callbackanonymous functionpreg_replace_callback
0 likes · 4 min read

This article explains what hook functions are, how they work as programmable insertion points in a program flow, provides a simple Python implementation example, and demonstrates their use in popular deep‑learning frameworks such as Keras and mmdetection.
CallbackKerashook
0 likes · 16 min read

This article explains PHP's preg_replace_callback function, details its parameters, demonstrates using anonymous functions for callbacks, and shows how to pass additional arguments via globals or class properties with clear code examples.
Callbackanonymous functionpreg_replace_callback
0 likes · 4 min read

array_walk() applies a user‑defined callback to each element of an array without affecting the internal pointer, accepting the array, a callable function, and optional userdata, returning TRUE on success; the article explains its parameters, behavior, and provides PHP code examples demonstrating typical usage.
BackendCallbackarray_walk
0 likes · 3 min read

This article explains the PHP function array_walk_recursive(), detailing its purpose, parameters, return values, and providing a complete example that demonstrates how to recursively apply a callback to array elements, including nested arrays, and shows the resulting output.
BackendCallbackPHP
0 likes · 2 min read

This article explains the PHP function array_uintersect(), which returns the intersection of arrays using a user‑defined callback for value comparison, describes its parameters and return value, and provides a complete example with code and expected output.
BackendCallbackFunction
0 likes · 2 min read

array_uintersect_uassoc is a PHP function that returns the intersection of multiple arrays while comparing both values and keys using user-defined callback functions, and the article explains its syntax, parameters, usage, and provides a complete example with expected output.
BackendCallbackIntersection
0 likes · 2 min read

The article explains PHP's array_uintersect_assoc function, which returns the intersection of two arrays while preserving keys and using a user‑provided callback to compare values, and includes a detailed parameter description, return value, and a complete runnable example.
Callbackarray intersectionarray_uintersect_assoc
0 likes · 2 min read

This article explains how the PHP function array_udiff() works with a user‑defined comparison callback to return the elements present in the first array but absent from subsequent arrays, includes parameter details, return behavior, and a complete runnable example with output.
BackendCallbackPHP
0 likes · 3 min read

array_udiff_uassoc() returns an array containing values from the first array that are not present in any of the other arrays, comparing both values and keys using user‑defined callback functions; the article explains its parameters, behavior, and provides a complete PHP example demonstrating usage.
BackendCallbackFunction
0 likes · 4 min read

This article explains PHP’s array_udiff_assoc function, detailing its purpose of computing array differences with index checks using a user‑defined callback, describing its parameters and return value, and providing a complete example with class definition, custom comparison function, usage code, and resulting output.
BackendCallbackDifference
0 likes · 3 min read

This article explains PHP's array_reduce() function, describing its parameters, behavior, and how a callback can iteratively process an input array to produce a single result, accompanied by example code demonstrating summation, multiplication, handling of empty arrays, and output inspection.
BackendCallbackarray reduction
0 likes · 3 min read


政采云技术Nov 17, 2020 · Frontend Development
This article explains the various asynchronous techniques in JavaScript—callback, Promise, async/await, and generator—compares them, and demonstrates practical patterns for handling callback hell, parallel and sequential async operations to write cleaner, more maintainable frontend code.
CallbackPromiseasync
0 likes · 10 min read

This article outlines three major pitfalls developers encounter when using ThinkPHP 3.2.3 with PHP 5.3 to handle WeChat enterprise callback decryption, and provides step‑by‑step solutions including library adjustments, constructor updates, signature handling, and output buffering cleanup.
CallbackWeChatencryption
0 likes · 4 min read

array_map() in PHP applies a user‑defined callback to each element of one or more arrays, returning a new array of the transformed values; the article explains its syntax, parameter requirements, return behavior, and provides multiple code examples demonstrating numeric, string, and mixed‑array usage.
BackendCallbackPHP
0 likes · 3 min read

This guide explains the PHP function array_diff_ukey, shows how to provide a custom key‑comparison callback, details each parameter, and demonstrates with a complete code example that returns the intersecting keys of two associative arrays.
CallbackPHParray_diff_ukey
0 likes · 3 min read

This article explains PHP's array_filter function, describing its parameters, return value, and how it applies a user‑defined callback to each array element, with detailed code examples that demonstrate filtering for odd, even, and truthy values.
BackendCallbackPHP
0 likes · 3 min read

This article explains how the PHP function array_diff_ukey() compares array keys using a user‑defined callback, details each parameter and return value, and provides a complete example showing the callback implementation, input arrays, and the resulting diff output.
CallbackPHParray
0 likes · 3 min read

The article explains how PHP's array_diff_uassoc() function compares arrays using both values and user‑defined key comparison callbacks, describes its parameters and return value, and provides a complete example with code and expected output.
BackendCallbackFunction
0 likes · 2 min read

This article explores various ways to implement interfaces in C++, comparing virtual functions, the Pimpl idiom, hidden subclasses, callback mechanisms, function pointers, std::function, member function pointers, and non‑intrusive traits, highlighting their trade‑offs in performance, binary compatibility, and design flexibility.
C++Callbackinterface
0 likes · 13 min read

The article explains PHP’s preg_replace_callback function, detailing its parameters and behavior, and provides three practical examples that demonstrate using anonymous and named callbacks to transform input strings, increment dates, and recursively parse custom tags into nested HTML elements.
BackendCallbackPHP
0 likes · 4 min read

This article explains the differences between synchronous and asynchronous method calls, introduces callback mechanisms, and provides complete Java code examples for both sync and async callbacks, helping developers grasp how to design and implement these patterns in backend applications.
BackendCallbackJava
0 likes · 14 min read

This article explains the limitations of Java's Future, demonstrates Netty's non‑blocking Future with listeners, and walks through building a simple Java callback‑based asynchronous task framework—including timeout handling—using Netty, CompletableFuture, and custom Worker/Listener abstractions.
CallbackConcurrencyFuture
0 likes · 13 min read

This article explains JavaScript Promises, covering their purpose in avoiding callback hell, the core API (constructor, then, catch, static methods), practical code examples, chaining behavior, comparison with callbacks and async/await, and even a custom implementation, providing a comprehensive guide for frontend developers.
CallbackJavaScriptPromise
0 likes · 25 min read

This article provides a comprehensive guide for mobile developers on JavaScript fundamentals such as callback hell, Promises, async/await, the arguments object, call and apply methods, mixins, and prototype inheritance, illustrating each concept with clear explanations and practical code examples to improve React Native coding practices.
CallApplyCallbackJavaScript
0 likes · 16 min read


JD TechJun 28, 2018 · Backend Development
This article introduces the concepts of synchronous versus asynchronous calls, explains the challenges of RPC services in large-scale systems, and provides detailed guidance on using polling, callbacks, futures, and CompletableFuture in Java to implement efficient, non‑blocking backend architectures with practical code examples.
Asynchronous ProgrammingBackendCallback
0 likes · 18 min read

This article explains the Java callback mechanism step by step using a kindergarten story, showing how simple addition can evolve into interface‑based callbacks with a SuperCalculator, and demonstrates the pattern with concrete Student, Calculator, Seller, and doJob implementations.
CallbackDesignPatternJava
0 likes · 13 min read

This article explains the three main ways modules can call each other—synchronous calls, asynchronous calls, and callbacks—illustrates each with Java code examples, and discusses when to use each approach for flexible and non‑blocking program design.
CallbackSynchronousasynchronous
0 likes · 10 min read

This article explains the Observer pattern’s one‑to‑many dependency concept, outlines its key components, provides a step‑by‑step Java implementation—including a custom news provider and user observer—demonstrates usage with JDK’s built‑in classes, and connects the pattern to Android callbacks.
AndroidCallbackObserver Pattern
0 likes · 9 min read

Promisify converts Node‑style callback functions into Promise‑based ones by ensuring the callback is the last argument and its first parameter is an error, enabling cleaner asynchronous code with examples, implementation details, and optimizations for JavaScript developers.
CallbackJavaScriptNode.js
0 likes · 5 min read


ITPUBMay 5, 2017 · Backend Development
The article explains three module invocation methods—synchronous, asynchronous, and callback—detailing their mechanisms, advantages, and trade‑offs, and provides a complete Java example where a teacher asks a student a question and receives the answer via a callback interface, illustrating both synchronous and asynchronous scenarios.
CallbackJavaModule Interaction
0 likes · 10 min read

This article explains how to solve the problem of undefined results when making asynchronous HTTP requests in a Node.js microservice by passing a callback function that receives the response data and any error, allowing the data to be accessed outside the request handler.
BackendCallbackHTTP
0 likes · 3 min read


ITPUBSep 22, 2016 · Fundamentals
This article explains the design principles of Linux kernel RCU, details the implementation of rcu_read_lock, describes how interrupt handlers update shared data safely, and clarifies when old pointers can be reclaimed using call_rcu or synchronize_rcu.
CallbackConcurrencyLinux kernel
0 likes · 9 min read
