当前位置:网站首页>Kotlin foundation from introduction to advanced series explanation (basic chapter) keyword: suspend
Kotlin foundation from introduction to advanced series explanation (basic chapter) keyword: suspend
2022-07-24 01:20:00 【Brother bin sir】
-> Return to the general catalog <-
suspend Used to pause the execution of the current program , And save all local variables , Marked as suspend Functions can only run in coprocessors or other suspend function
Take a look at it first retrofit( The network library ) Instead of using suspend What errors can keyword cause ?
java.lang.IllegalArgumentException: Unable to create call adapter for com.demo.mytest.model.bean.Result<com.demo.mytest.model.bean.PageEntity<com.demo.mytest.model.bean.Article>>
Does not add suspend Keyword, the callback data cannot create the returned data type , Wrong type

Added suspend keyword , There are no errors after running
边栏推荐
- Sublime text 3 Chinese + add common plug-ins
- 1000 okaleido tiger launched binance NFT, triggering a rush to buy
- Explanation and induction of polymer physics terms
- Basic use of crawler requests module
- HCIP第五天笔记
- Use and understanding of string functions (2)
- Determination of host byte order
- 1000个Okaleido Tiger首发上线Binance NFT,引发抢购热潮
- C language database: detailed description. Use the student management system to understand the operation of the database, which is simple and easy to understand.
- HCIP实验
猜你喜欢

数字化转型时代的企业数据新基建 | 爱分析报告

Single chip microcomputer learning notes 3 -- single chip microcomputer structure and minimum system (based on Baiwen STM32F103 series tutorials)

HCIP实验

HCIP第二天笔记

The flare project celery uses the pits encountered in redis sentinel

HCIP,OSPF综合实验

数仓搭建——ODS层

Sublime text 3 Chinese + add common plug-ins

面试题之:ArrayList和LinkedList有哪些区别

SCM learning notes 1 -- data download and environment construction (based on Baiwen STM32F103 series tutorials)
随机推荐
128. Longest continuous sequence
Use and understanding of string functions (1)
SkyWalking分布式系统应用程序性能监控工具-上
国产MCU和SOC崛起但特殊领域仍落后
HCIP第十天笔记
C language database: detailed description. Use the student management system to understand the operation of the database, which is simple and easy to understand.
Parsing yaml configuration files using C language and libcyaml Library
C语言力扣第53题之最大子数组和。动态规划与分治
Redis - configuration and Application
Deep understanding of collaborative process
Sword *offer -- reverse order of linked list
HCIP第六天笔记
OSI open system interconnection model and tcp/ip model
爬虫requests模块的基本使用
Bubble sort, quick sort
Redis - basic concept
Establishment of static route
Idea setting automatic package import and useless package deletion
HCIP实验
Introduction to the use of bit instruction in Rockwell AB PLC rslogix5000